accounts.routes.ui module¶
Provides Flask integration for the external user interface.
-
accounts.routes.ui.
anonymous_only
(func)[source]¶ Redirect logged-in users to their profile.
Return type: Callable
-
accounts.routes.ui.
captcha
()[source]¶ Provide the image for stateless stateless_captcha.
Return type: Response
-
accounts.routes.ui.
login
()[source]¶ User can log in with username and password, or permanent token.
Return type: Response
Update a
Response
with cookies in controller data.Contollers seeking to update cookies must include a ‘cookies’ key in their response data.
Return type: None
Unset the legacy Catalyst submission cookie.
In addition to the authenticated session (which was originally from the Tapir auth system), Catalyst also tracks a session used specifically for the submission process. The legacy Catalyst controller sets this automatically, so we don’t need to do anything on login. But on logout, if this cookie is not cleared, Catalyst may attempt to use the same submission session upon subsequent logins. This can lead to weird inconsistencies.
Return type: None