From b78b55960337deae72d5dd3147d884ae9baf96de Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 7 Apr 2016 09:37:02 +0200 Subject: Bug 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 fc5f4f4a..9aca234d 100644 --- a/src/web/forms.py +++ b/src/web/forms.py @@ -61,8 +61,8 @@ class SignupForm(Form): if ucontr.read(nickname=self.nickname.data).count(): self.nickname.errors.append('Nickname already taken') validated = False - if self.password.data != self.password_conf.data: - self.password_conf.errors.append("Passwords don't match") + if ucontr.read(email=self.email.data).count(): + self.email.errors.append('Email already taken') validated = False return validated -- cgit