aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/forms.py b/pyaggr3g470r/forms.py
index 57076428..d745154b 100644
--- a/pyaggr3g470r/forms.py
+++ b/pyaggr3g470r/forms.py
@@ -71,7 +71,7 @@ class SigninForm(Form):
user = User.query.filter(User.email == self.email.data).first()
if user and user.check_password(self.password.data) and user.activation_key == "":
return True
- elif user.activation_key != "":
+ elif user and user.activation_key != "":
flash(lazy_gettext('Account not confirmed'), 'danger')
return False
else:
bgstack15