bug fix: missing return statement

This commit is contained in:
Miguel Grinberg 2013-05-23 14:40:14 -07:00
parent abdd43cd9b
commit 16022c51c9
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ def login():
def after_login(resp): def after_login(resp):
if resp.email is None or resp.email == "": if resp.email is None or resp.email == "":
flash(gettext('Invalid login. Please try again.')) 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() user = User.query.filter_by(email = resp.email).first()
if user is None: if user is None:
nickname = resp.nickname nickname = resp.nickname