diff options
author | Vincent Post <cent@spline.de> | 2020-08-07 21:38:54 +0200 |
---|---|---|
committer | Jonah BrĂ¼chert <jbb@kaidan.im> | 2023-05-22 00:28:13 +0200 |
commit | acfbdbf7bb9f6f1105d464f3e6080c33330736ff (patch) | |
tree | f319c5e050a79dd6754fb09985f7b6263a339163 /accounts/views/login/__init__.py | |
parent | b21b940a3ded4bc5eb664a6b787d1f0fbbc7cc88 (diff) | |
download | web-acfbdbf7bb9f6f1105d464f3e6080c33330736ff.tar.gz web-acfbdbf7bb9f6f1105d464f3e6080c33330736ff.tar.bz2 web-acfbdbf7bb9f6f1105d464f3e6080c33330736ff.zip |
Updated Flask-Login => is_authenticated is not a method anymore
Diffstat (limited to 'accounts/views/login/__init__.py')
-rw-r--r-- | accounts/views/login/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/views/login/__init__.py b/accounts/views/login/__init__.py index afcc4a9..730b3ed 100644 --- a/accounts/views/login/__init__.py +++ b/accounts/views/login/__init__.py @@ -24,7 +24,7 @@ def is_safe_url(target): @bp.route('/login', methods=['GET', 'POST']) def login(): - if current_user.is_authenticated(): + if current_user.is_authenticated: return redirect(url_for('default.index')) form = LoginForm(request.form) |