mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-17 11:27:27 +08:00
Changing is_authenticated from function to property & updating Flask-Login>=0.3.0
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{%- if current_user.is_authenticated() -%}
|
||||
{%- if current_user.is_authenticated -%}
|
||||
<p>Hello {{ current_user.email }}</p>
|
||||
{%- endif %}
|
||||
<ul>
|
||||
@@ -11,7 +11,7 @@
|
||||
<li><a href="{{ url_for('admin_or_editor') }}">Admin or Editor</a></li>
|
||||
{% endif -%}
|
||||
<li>
|
||||
{%- if current_user.is_authenticated() -%}
|
||||
{%- if current_user.is_authenticated -%}
|
||||
<a href="{{ url_for('security.logout') }}">Log out</a>
|
||||
{%- else -%}
|
||||
<a href="{{ url_for('security.login') }}">Log in</a>
|
||||
|
||||
Reference in New Issue
Block a user