bug fix: missing return statement
This commit is contained in:
parent
abdd43cd9b
commit
16022c51c9
|
@ -88,7 +88,7 @@ def login():
|
|||
def after_login(resp):
|
||||
if resp.email is None or resp.email == "":
|
||||
flash(gettext('Invalid login. Please try again.'))
|
||||
redirect(url_for('login'))
|
||||
return redirect(url_for('login'))
|
||||
user = User.query.filter_by(email = resp.email).first()
|
||||
if user is None:
|
||||
nickname = resp.nickname
|
||||
|
|
Loading…
Reference in New Issue