From 300f3731151c1c52303606a5ae55622e7536129b Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 1 Mar 2016 23:04:32 +0100 Subject: fix --- src/web/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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') -- cgit