web/views/sessions.py
changeset 6848 f87cd875c6db
parent 6791 fe58b234f9c2
child 7428 5338d895b891
equal deleted inserted replaced
6847:c1d33aff7715 6848:f87cd875c6db
    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