Changing is_authenticated from function to property & updating Flask-Login>=0.3.0

This commit is contained in:
Alejandro Villanueva
2015-09-11 10:31:01 -05:00
parent 4049c06203
commit 7e8551763e
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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>