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/669/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/__manifest__.py
-
password_security/demo/res_users.xml
|
|
@ -5,7 +5,7 @@ |
|
|
|
|
|
|
|
'name': 'Password Security', |
|
|
|
"summary": "Allow admin to set password security requirements.", |
|
|
|
'version': '10.0.1.0.0', |
|
|
|
'version': '10.0.1.0.1', |
|
|
|
'author': "LasLabs, Odoo Community Association (OCA)", |
|
|
|
'category': 'Base', |
|
|
|
'depends': [ |
|
|
@ -19,5 +19,8 @@ |
|
|
|
'security/ir.model.access.csv', |
|
|
|
'security/res_users_pass_history.xml', |
|
|
|
], |
|
|
|
"demo": [ |
|
|
|
'demo/res_users.xml', |
|
|
|
], |
|
|
|
'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> |