diff --git a/password_security/__manifest__.py b/password_security/__manifest__.py index 958bbe906d..c2e4273518 100644 --- a/password_security/__manifest__.py +++ b/password_security/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Password Security", "summary": "Allow admin to set password security requirements.", - "version": "17.0.2.0.0", + "version": "17.0.2.0.1", "author": "LasLabs, " "Onestein, " "Kaushal Prajapati, " diff --git a/password_security/controllers/main.py b/password_security/controllers/main.py index c780ef48a5..2df805af77 100644 --- a/password_security/controllers/main.py +++ b/password_security/controllers/main.py @@ -15,11 +15,11 @@ class PasswordSecurityHome(AuthSignupHome): - def do_signup(self, qcontext): + def do_signup(self, qcontext, **kw): password = qcontext.get("password") user = request.env.user user._check_password(password) - return super().do_signup(qcontext) + return super().do_signup(qcontext, **kw) @http.route() def web_login(self, *args, **kw): diff --git a/password_security/tests/test_signup.py b/password_security/tests/test_signup.py index b600f4cd12..3c988d83c0 100644 --- a/password_security/tests/test_signup.py +++ b/password_security/tests/test_signup.py @@ -44,7 +44,7 @@ def signup(self, username, password): def test_01_signup_user_fail(self): """It should fail when signup user with weak password""" # Weak password: signup failed - response = self.signup("jackoneill", "jackoneill") + response = self.signup("jackoneill@example.com", "jackoneill") # Ensure we stay in the signup page self.assertEqual(response.request.path_url, "/web/signup") @@ -57,7 +57,7 @@ def test_01_signup_user_fail(self): def test_02_signup_user_success(self): """It should succeed when signup user with strong password""" # Weak password: signup failed - response = self.signup("jackoneill", "!asdQWE12345_3") + response = self.signup("jackoneill@example.com", "!asdQWE12345_3") # Ensure we were logged in self.assertEqual(