Browse Source

Merge pull request #1109 from LasLabs/bugfix/10.0/password_security-request_params

[10.0][FIX] password_security: No login success with no params
pull/1139/head
Pedro M. Baeza 7 years ago
committed by GitHub
parent
commit
e2078c8f33
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      password_security/__manifest__.py
  2. 2
      password_security/controllers/main.py

2
password_security/__manifest__.py

@ -5,7 +5,7 @@
'name': 'Password Security', 'name': 'Password Security',
"summary": "Allow admin to set password security requirements.", "summary": "Allow admin to set password security requirements.",
'version': '10.0.1.1.2',
'version': '10.0.1.1.3',
'author': "LasLabs, Odoo Community Association (OCA)", 'author': "LasLabs, Odoo Community Association (OCA)",
'category': 'Base', 'category': 'Base',
'depends': [ 'depends': [

2
password_security/controllers/main.py

@ -36,7 +36,7 @@ class PasswordSecurityHome(AuthSignupHome):
def web_login(self, *args, **kw): def web_login(self, *args, **kw):
ensure_db() ensure_db()
response = super(PasswordSecurityHome, self).web_login(*args, **kw) 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: if not request.httprequest.method == 'POST' or not login_success:
return response return response
uid = request.session.authenticate( uid = request.session.authenticate(

Loading…
Cancel
Save