Using flask_login session with jinja2 templates
Flask-Login adds the current_user
variable to your templates:
{% if current_user.is_authenticated %} ...{% else %} ...{% endif %}
They mention this briefly in the documentation.
Flask-Login adds the current_user
variable to your templates:
{% if current_user.is_authenticated %} ...{% else %} ...{% endif %}
They mention this briefly in the documentation.