aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/forms.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel+bitbucket@gmail.com>2014-06-08 18:25:06 +0200
committerCédric Bonhomme <kimble.mandel+bitbucket@gmail.com>2014-06-08 18:25:06 +0200
commit0a80a6a62e94b326d9f1dea947ebbc87149a1922 (patch)
treeba7f055f7910e1b5317ce8b952c43179116942d5 /pyaggr3g470r/forms.py
parentFont size for the sidebar: 100% (diff)
parentsupporting feed without date or with ill formated date (diff)
downloadnewspipe-0a80a6a62e94b326d9f1dea947ebbc87149a1922.tar.gz
newspipe-0a80a6a62e94b326d9f1dea947ebbc87149a1922.tar.bz2
newspipe-0a80a6a62e94b326d9f1dea947ebbc87149a1922.zip
Merged in jaesivsm/pyaggr3g470r (pull request #1)
misc fixes
Diffstat (limited to 'pyaggr3g470r/forms.py')
-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