summaryrefslogtreecommitdiffstats
path: root/accounts/views/login/__init__.py
diff options
context:
space:
mode:
authorVincent Post <cent@spline.de>2020-08-07 21:38:54 +0200
committerJonah BrĂ¼chert <jbb@kaidan.im>2023-05-22 00:28:13 +0200
commitacfbdbf7bb9f6f1105d464f3e6080c33330736ff (patch)
treef319c5e050a79dd6754fb09985f7b6263a339163 /accounts/views/login/__init__.py
parentb21b940a3ded4bc5eb664a6b787d1f0fbbc7cc88 (diff)
downloadweb-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__.py2
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)