Skip to content

Commit

Permalink
[FIX] password_security: Validate admin pass
Browse files Browse the repository at this point in the history
* Add current time as password_write_date for admin user in demo, disabling the reset prompt - fixes OCA#652
  • Loading branch information
lasley authored and ilyas caluwe committed Jan 31, 2024
1 parent 78f92d8 commit 23d51a8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 10 deletions.
5 changes: 4 additions & 1 deletion password_security/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': [
Expand All @@ -19,5 +19,8 @@
'security/ir.model.access.csv',
'security/res_users_pass_history.xml',
],
"demo": [
'demo/res_users.xml',
],
'installable': True,
}
16 changes: 16 additions & 0 deletions password_security/demo/res_users.xml
Original file line number Diff line number Diff line change
@@ -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>
19 changes: 10 additions & 9 deletions password_security/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# Paolo Valier <paolo.valier@hotmail.it>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-26 03:36+0000\n"
"PO-Revision-Date: 2016-11-26 03:36+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"POT-Creation-Date: 2016-12-23 02:01+0000\n"
"PO-Revision-Date: 2016-12-23 02:01+0000\n"
"Last-Translator: Paolo Valier <paolo.valier@hotmail.it>, 2016\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand All @@ -32,12 +33,12 @@ msgstr ""
#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_company_password_length
msgid "Characters"
msgstr ""
msgstr "Caratteri"

#. module: password_security
#: model:ir.model,name:password_security.model_res_company
msgid "Companies"
msgstr ""
msgstr "Aziende"

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_create_uid
Expand All @@ -52,12 +53,12 @@ msgstr "Creato il"
#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_date
msgid "Date"
msgstr ""
msgstr "Data"

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_company_password_expiration
msgid "Days"
msgstr ""
msgstr "Giorni"

#. module: password_security
#: model:ir.model.fields,help:password_security.field_res_company_password_history
Expand All @@ -84,7 +85,7 @@ msgstr ""
#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_company_password_history
msgid "History"
msgstr ""
msgstr "Cronologia"

#. module: password_security
#: model:ir.model.fields,help:password_security.field_res_company_password_expiration
Expand Down Expand Up @@ -238,7 +239,7 @@ msgstr ""
#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_user_id
msgid "User"
msgstr ""
msgstr "Utente"

#. module: password_security
#: model:ir.model,name:password_security.model_res_users
Expand Down

0 comments on commit 23d51a8

Please sign in to comment.