User web pages module.
See also
Flask — Working with Blueprints
Sets the g.current_user global variable before every request.
Injects the current_user for templates.
{% if current_user %}
<p>You are {{ current_user }}.</p>
{% else %}
<p>Who are you?</p>
{% endif %}
Sets the g.current_user. user can be None also.
Parameters: | user (User, types.NoneType) – the user to set. signs out if it is None |
---|
Signs out.
Starts to sign in. Shows a login form, or redirects the user to a login form of an other service.
Finishes signing in.
User profile page.
User profile edit form.