web/views/basecontrollers.py
branchstable
changeset 5584 c1823448f81d
parent 5546 1bdaa9e1cd57
child 5590 a56eb02f9ce7
child 5626 c80e8aa1935e
--- a/web/views/basecontrollers.py	Wed May 26 11:01:50 2010 +0200
+++ b/web/views/basecontrollers.py	Wed May 26 12:31:34 2010 +0200
@@ -31,7 +31,7 @@
 from cubicweb import (NoSelectableObject, ObjectNotFound, ValidationError,
                       AuthenticationError, typed_eid)
 from cubicweb.utils import CubicWebJsonEncoder
-from cubicweb.selectors import authenticated_user, match_form_params
+from cubicweb.selectors import authenticated_user, anonymous_user, match_form_params
 from cubicweb.mail import format_mail
 from cubicweb.web import Redirect, RemoteCallFailed, DirectResponse, json_dumps, json
 from cubicweb.web.controller import Controller
@@ -78,6 +78,7 @@
 
 class LoginController(Controller):
     __regid__ = 'login'
+    __select__ = anonymous_user()
 
     def publish(self, rset=None):
         """log in the instance"""