aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-03-01 23:04:32 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-03-01 23:04:32 +0100
commit300f3731151c1c52303606a5ae55622e7536129b (patch)
treeab88b9f494e76afcf8c4f2aae9d4b6068dd47e88 /src/web
parentbegin integration of the new architecture (diff)
downloadnewspipe-300f3731151c1c52303606a5ae55622e7536129b.tar.gz
newspipe-300f3731151c1c52303606a5ae55622e7536129b.tar.bz2
newspipe-300f3731151c1c52303606a5ae55622e7536129b.zip
fix
Diffstat (limited to 'src/web')
-rw-r--r--src/web/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/forms.py b/src/web/forms.py
index b23bf77f..bf321ae3 100644
--- a/src/web/forms.py
+++ b/src/web/forms.py
@@ -107,11 +107,11 @@ class SigninForm(RedirectForm):
try:
user = ucontr.get(email=self.email.data)
except NotFound:
- self.login.errors.append('Wrong login')
+ self.email.errors.append('Wrong login')
validated = False
else:
if not user.is_active:
- self.login.errors.append('User is desactivated')
+ self.email.errors.append('User is desactivated')
validated = False
if not ucontr.check_password(user, self.password.data):
self.password.errors.append('Wrong password')
bgstack15