Skip to content

Commit de167e3

Browse files
lasleybizzappdev
authored andcommitted
[FIX] password_security: Validate admin pass
* Add current time as password_write_date for admin user in demo, disabling the reset prompt - fixes OCA#652
1 parent e3b26a5 commit de167e3

3 files changed

Lines changed: 30 additions & 10 deletions

File tree

password_security/__manifest__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
'name': 'Password Security',
77
"summary": "Allow admin to set password security requirements.",
8-
'version': '10.0.1.0.0',
8+
'version': '10.0.1.0.1',
99
'author': "LasLabs, Odoo Community Association (OCA)",
1010
'category': 'Base',
1111
'depends': [
@@ -19,5 +19,8 @@
1919
'security/ir.model.access.csv',
2020
'security/res_users_pass_history.xml',
2121
],
22+
"demo": [
23+
'demo/res_users.xml',
24+
],
2225
'installable': True,
2326
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!--
4+
Copyright 2016 LasLabs Inc.
5+
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
6+
-->
7+
8+
<odoo>
9+
10+
<record id="base.user_root" model="res.users">
11+
<field name="password_write_date"
12+
eval="datetime.now()"
13+
/>
14+
</record>
15+
16+
</odoo>

password_security/i18n/it.po

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
#
55
# Translators:
66
# OCA Transbot <transbot@odoo-community.org>, 2016
7+
# Paolo Valier <paolo.valier@hotmail.it>, 2016
78
msgid ""
89
msgstr ""
910
"Project-Id-Version: Odoo Server 10.0\n"
1011
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2016-11-26 03:36+0000\n"
12-
"PO-Revision-Date: 2016-11-26 03:36+0000\n"
13-
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
12+
"POT-Creation-Date: 2016-12-23 02:01+0000\n"
13+
"PO-Revision-Date: 2016-12-23 02:01+0000\n"
14+
"Last-Translator: Paolo Valier <paolo.valier@hotmail.it>, 2016\n"
1415
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
@@ -32,12 +33,12 @@ msgstr ""
3233
#. module: password_security
3334
#: model:ir.model.fields,field_description:password_security.field_res_company_password_length
3435
msgid "Characters"
35-
msgstr ""
36+
msgstr "Caratteri"
3637

3738
#. module: password_security
3839
#: model:ir.model,name:password_security.model_res_company
3940
msgid "Companies"
40-
msgstr ""
41+
msgstr "Aziende"
4142

4243
#. module: password_security
4344
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_create_uid
@@ -52,12 +53,12 @@ msgstr "Creato il"
5253
#. module: password_security
5354
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_date
5455
msgid "Date"
55-
msgstr ""
56+
msgstr "Data"
5657

5758
#. module: password_security
5859
#: model:ir.model.fields,field_description:password_security.field_res_company_password_expiration
5960
msgid "Days"
60-
msgstr ""
61+
msgstr "Giorni"
6162

6263
#. module: password_security
6364
#: model:ir.model.fields,help:password_security.field_res_company_password_history
@@ -84,7 +85,7 @@ msgstr ""
8485
#. module: password_security
8586
#: model:ir.model.fields,field_description:password_security.field_res_company_password_history
8687
msgid "History"
87-
msgstr ""
88+
msgstr "Cronologia"
8889

8990
#. module: password_security
9091
#: model:ir.model.fields,help:password_security.field_res_company_password_expiration
@@ -238,7 +239,7 @@ msgstr ""
238239
#. module: password_security
239240
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_user_id
240241
msgid "User"
241-
msgstr ""
242+
msgstr "Utente"
242243

243244
#. module: password_security
244245
#: model:ir.model,name:password_security.model_res_users

0 commit comments

Comments
 (0)