aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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