Browse Source
[FIX] password_security: Validate admin pass
* Add current time as password_write_date for admin user in demo, disabling the reset prompt - fixes #652
pull/668/head
Dave Lasley
8 years ago
No known key found for this signature in database
GPG Key ID: 7DDBA4BA81B934CF
2 changed files with
20 additions and
1 deletions
-
password_security/__openerp__.py
-
password_security/demo/res_users.xml
|
@ -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.0.2', |
|
|
|
|
|
|
|
|
'version': '9.0.1.0.3', |
|
|
'author': "LasLabs, Odoo Community Association (OCA)", |
|
|
'author': "LasLabs, Odoo Community Association (OCA)", |
|
|
'category': 'Base', |
|
|
'category': 'Base', |
|
|
'depends': [ |
|
|
'depends': [ |
|
@ -19,5 +19,8 @@ |
|
|
'security/ir.model.access.csv', |
|
|
'security/ir.model.access.csv', |
|
|
'security/res_users_pass_history.xml', |
|
|
'security/res_users_pass_history.xml', |
|
|
], |
|
|
], |
|
|
|
|
|
"demo": [ |
|
|
|
|
|
'demo/res_users.xml', |
|
|
|
|
|
], |
|
|
'installable': True, |
|
|
'installable': True, |
|
|
} |
|
|
} |
|
@ -0,0 +1,16 @@ |
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
Copyright 2016 LasLabs Inc. |
|
|
|
|
|
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|
|
|
|
|
--> |
|
|
|
|
|
|
|
|
|
|
|
<odoo> |
|
|
|
|
|
|
|
|
|
|
|
<record id="base.user_root" model="res.users"> |
|
|
|
|
|
<field name="password_write_date" |
|
|
|
|
|
eval="datetime.now()" |
|
|
|
|
|
/> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
</odoo> |