From f44e64ed2a5313c5358b51e38e9d7b54ada543e5 Mon Sep 17 00:00:00 2001 From: Dave Lasley Date: Wed, 27 Dec 2017 09:05:57 -0800 Subject: [PATCH] [FIX] password_security: No login success with no params * Default the `login_success` parameter to False instead of True in order to mitigate lack of parameter existence due to unknown module. Fixes OCA#1081 --- password_security/__openerp__.py | 2 +- password_security/controllers/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/password_security/__openerp__.py b/password_security/__openerp__.py index 420419d9e..05a9e0637 100644 --- a/password_security/__openerp__.py +++ b/password_security/__openerp__.py @@ -5,7 +5,7 @@ 'name': 'Password Security', "summary": "Allow admin to set password security requirements.", - 'version': '9.0.1.2.2', + 'version': '9.0.1.2.3', 'author': "LasLabs, Odoo Community Association (OCA)", 'category': 'Base', 'depends': [ diff --git a/password_security/controllers/main.py b/password_security/controllers/main.py index 3493b0d25..ba946cf09 100644 --- a/password_security/controllers/main.py +++ b/password_security/controllers/main.py @@ -36,7 +36,7 @@ class PasswordSecurityHome(AuthSignupHome): def web_login(self, *args, **kw): ensure_db() response = super(PasswordSecurityHome, self).web_login(*args, **kw) - login_success = request.params.get('login_success', True) + login_success = request.params.get('login_success', False) if not request.httprequest.method == 'POST' or not login_success: return response uid = request.session.authenticate(