websauna.system.user.views module

User login and sign up handling views.

Note

Plan to move something more flexible in the future from these hardcoded, not very feature rich or flexible, views.

websauna.system.user.views.activate(request)[source]

View to activate user after clicking email link.

Parameters

request (Request) – Pyramid request.

Return type

dict

Returns

Context to be used by the renderer.

websauna.system.user.views.forgot_password(request)[source]

Forgot password screen.

Parameters

request (Request) – Pyramid request.

Return type

dict

Returns

Context to be used by the renderer.

websauna.system.user.views.login(request)[source]

Default login view implementation.

Parameters

request (Request) – Pyramid request.

Return type

[<class ‘pyramid.httpexceptions.HTTPFound’>, <class ‘dict’>]

Returns

Context to be used by the renderer or a HTTPFound redirect if user is already logged in.

websauna.system.user.views.login_social(request)[source]

Login using OAuth and any of the social providers.

Parameters

request (Request) – Pyramid request.

Return type

dict

Returns

Context to be used by the renderer.

websauna.system.user.views.logout(request)[source]

Logout view.

Parameters

request (Request) – Pyramid request.

Return type

Response

Returns

Context to be used by the renderer.

websauna.system.user.views.register(request)[source]

Sign up view.

Parameters

request (Request) – Pyramid request.

Return type

dict

Returns

Context to be used by the renderer.

websauna.system.user.views.registration_complete(request)[source]

After activation initial login screen.

Parameters

request (Request) – Pyramid request.

Return type

dict

Returns

Context to be used by the renderer.

websauna.system.user.views.reset_password(request)[source]

Reset password view.

User arrives on the page and enters the new password.

Parameters

request (Request) – Pyramid request.

Return type

dict

Returns

Context to be used by the renderer.