Browse Source
[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
pull/1108/head
Dave Lasley
7 years ago
No known key found for this signature in database
GPG Key ID: 7DDBA4BA81B934CF
2 changed files with
2 additions and
2 deletions
password_security/__openerp__.py
password_security/controllers/main.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 ' : ' 9.0.1.2.2 ' ,
' version ' : ' 9.0.1.2.3 ' ,
' author ' : " LasLabs, Odoo Community Association (OCA) " ,
' author ' : " LasLabs, Odoo Community Association (OCA) " ,
' category ' : ' Base ' ,
' category ' : ' Base ' ,
' depends ' : [
' depends ' : [
@ -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 ' , Tru e)
login_success = request . params . get ( ' login_success ' , Fals e)
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 (