cubicweb.pyramid.login
Contents
cubicweb.pyramid.login
#
Provide login views that reproduce a classical CubicWeb behavior
- cubicweb.pyramid.login.includeme(config)[source]#
Create the âloginâ route (â/loginâ) and load this module views
Views#
- cubicweb.pyramid.login.login_form(request)[source]#
Default view for the âloginâ route.
Display the âloginâ CubicWeb view, which is should be a login form
- cubicweb.pyramid.login.login_password_login(request)[source]#
Handle POST of __login/__password on the âloginâ route.
The authentication itself is delegated to the CubicWeb repository.
Request parameters:
- Parameters
__login â The user login (or email if
allow-email-login
is on.__password â The user password
__setauthcookie â
(optional) If defined and equal to â1â, set the authentication cookie maxage to 1 week.
If not, the authentication cookie is a session cookie.