mirror of
https://github.com/wassname/flask-security.git
synced 2026-08-04 12:54:05 +08:00
Changing is_authenticated from function to property & updating Flask-Login>=0.3.0
This commit is contained in:
@@ -90,7 +90,7 @@ def login():
|
||||
def logout():
|
||||
"""View function which handles a logout request."""
|
||||
|
||||
if current_user.is_authenticated():
|
||||
if current_user.is_authenticated:
|
||||
logout_user()
|
||||
|
||||
return redirect(request.args.get('next', None) or
|
||||
|
||||
Reference in New Issue
Block a user