aboutsummaryrefslogtreecommitdiff
path: root/src/web/forms.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-07 09:37:02 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-07 09:37:02 +0200
commitb78b55960337deae72d5dd3147d884ae9baf96de (patch)
tree1d9ca2badced258947c4fd4a082c73b678e1683d /src/web/forms.py
parentBug fix. (diff)
downloadnewspipe-b78b55960337deae72d5dd3147d884ae9baf96de.tar.gz
newspipe-b78b55960337deae72d5dd3147d884ae9baf96de.tar.bz2
newspipe-b78b55960337deae72d5dd3147d884ae9baf96de.zip
Bug fix.
Diffstat (limited to 'src/web/forms.py')
-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 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
bgstack15