diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-07 09:33:53 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-07 09:33:53 +0200 |
commit | 7d2c186343d9d63013547e17152e87e52e4ccd31 (patch) | |
tree | c144b18e3fcc0b02d5f727fba57514c073760f03 /src/web | |
parent | Removed recaptcha. (diff) | |
download | newspipe-7d2c186343d9d63013547e17152e87e52e4ccd31.tar.gz newspipe-7d2c186343d9d63013547e17152e87e52e4ccd31.tar.bz2 newspipe-7d2c186343d9d63013547e17152e87e52e4ccd31.zip |
Bug fix.
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/forms.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/web/forms.py b/src/web/forms.py index c7752ab2..fc5f4f4a 100644 --- a/src/web/forms.py +++ b/src/web/forms.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # jarr - A Web based news aggregator. -# Copyright (C) 2010-2013 Cédric Bonhomme - https://www.cedricbonhomme.org +# Copyright (C) 2010-2016 Cédric Bonhomme - https://www.cedricbonhomme.org # # For more information : http://github.com/JARR-aggregator/JARR/ # @@ -58,8 +58,8 @@ class SignupForm(Form): def validate(self): ucontr = UserController() validated = super().validate() - if ucontr.read(login=self.login.data).count(): - self.login.errors.append('Login already taken') + 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") |