changeset 11195 | 5de859b95988 |
parent 11057 | 0b59724cb3f2 |
child 11767 | 432f87a63057 |
--- a/cubicweb/web/views/authentication.py Wed Mar 09 14:11:47 2016 +0100 +++ b/cubicweb/web/views/authentication.py Thu Jun 12 15:54:44 2014 +0200 @@ -170,5 +170,4 @@ raise AuthenticationError() def _authenticate(self, login, authinfo): - sessionid = self.repo.connect(login, **authinfo) - return self.repo._sessions[sessionid] + return self.repo.new_session(login, **authinfo)