From 7d2c186343d9d63013547e17152e87e52e4ccd31 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 7 Apr 2016 09:33:53 +0200 Subject: Bug fix. --- src/web/forms.py | 6 +++--- 1 file 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") -- cgit