equal
deleted
inserted
replaced
67 also bound to the request. |
67 also bound to the request. |
68 |
68 |
69 raise :exc:`cubicweb.AuthenticationError` if authentication failed |
69 raise :exc:`cubicweb.AuthenticationError` if authentication failed |
70 (no authentication info found or wrong user/password) |
70 (no authentication info found or wrong user/password) |
71 """ |
71 """ |
72 cnx, login, authinfo = self.authmanager.authenticate(req) |
72 cnx, login = self.authmanager.authenticate(req) |
73 session = DBAPISession(cnx, login, authinfo) |
73 session = DBAPISession(cnx, login) |
74 self._sessions[session.sessionid] = session |
74 self._sessions[session.sessionid] = session |
75 # associate the connection to the current request |
75 # associate the connection to the current request |
76 req.set_session(session) |
76 req.set_session(session) |
77 return session |
77 return session |
78 |
78 |