web/views/basecontrollers.py
changeset 5590 a56eb02f9ce7
parent 5556 9ab2b4c74baf
parent 5584 c1823448f81d
child 5627 a7e40cccdc9b
--- a/web/views/basecontrollers.py	Tue May 25 11:51:48 2010 +0200
+++ b/web/views/basecontrollers.py	Wed May 26 12:33:48 2010 +0200
@@ -26,7 +26,9 @@
 
 from cubicweb import (NoSelectableObject, ObjectNotFound, ValidationError,
                       AuthenticationError, typed_eid)
-from cubicweb.selectors import authenticated_user, match_form_params
+from cubicweb.utils import CubicWebJsonEncoder
+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, json_dumps)
 from cubicweb.web.controller import Controller
@@ -73,6 +75,7 @@
 
 class LoginController(Controller):
     __regid__ = 'login'
+    __select__ = anonymous_user()
 
     def publish(self, rset=None):
         """log in the instance"""