Browse Source
[FIX] password_security: Default last write date
* Add a default `password_write_date` to circumvent need for immediate password reset, fixing #1083
pull/1088/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
1 deletions
-
password_security/__openerp__.py
-
password_security/models/res_users.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.1', |
|
|
|
|
|
|
|
|
'version': '9.0.1.2.2', |
|
|
'author': "LasLabs, Odoo Community Association (OCA)", |
|
|
'author': "LasLabs, Odoo Community Association (OCA)", |
|
|
'category': 'Base', |
|
|
'category': 'Base', |
|
|
'depends': [ |
|
|
'depends': [ |
|
|
|
@ -21,6 +21,7 @@ class ResUsers(models.Model): |
|
|
|
|
|
|
|
|
password_write_date = fields.Datetime( |
|
|
password_write_date = fields.Datetime( |
|
|
'Last password update', |
|
|
'Last password update', |
|
|
|
|
|
default=fields.Datetime.now, |
|
|
readonly=True, |
|
|
readonly=True, |
|
|
) |
|
|
) |
|
|
password_history_ids = fields.One2many( |
|
|
password_history_ids = fields.One2many( |
|
|