diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-07 09:37:02 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-07 09:37:02 +0200 |
commit | b78b55960337deae72d5dd3147d884ae9baf96de (patch) | |
tree | 1d9ca2badced258947c4fd4a082c73b678e1683d /src | |
parent | Bug fix. (diff) | |
download | newspipe-b78b55960337deae72d5dd3147d884ae9baf96de.tar.gz newspipe-b78b55960337deae72d5dd3147d884ae9baf96de.tar.bz2 newspipe-b78b55960337deae72d5dd3147d884ae9baf96de.zip |
Bug fix.
Diffstat (limited to 'src')
-rw-r--r-- | src/web/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |