Skip to content

Commit

Permalink
[MIG] password_security: Migrate to v10
Browse files Browse the repository at this point in the history
* Bump versions
* Installable to True
* Add Usage section to ReadMe w/ Runbot link
* `_crypt_context` now directly exposes the `CryptContext`
* Change all instances of openerp to odoo
  • Loading branch information
lasley authored and ilyas caluwe committed Jan 31, 2024
1 parent 716d7d1 commit 78f92d8
Show file tree
Hide file tree
Showing 74 changed files with 15,773 additions and 17 deletions.
10 changes: 10 additions & 0 deletions password_security/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ These are defined at the company level:
password_minimum 24 Amount of hours that must pass until another reset
===================== ======= ===================================================

Usage
=====

Configure using above instructions for each company that should have password
security mandates.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/10.0

Known Issues / Roadmap
======================

Expand Down
4 changes: 2 additions & 2 deletions 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': '9.0.1.0.2',
'version': '10.0.1.0.0',
'author': "LasLabs, Odoo Community Association (OCA)",
'category': 'Base',
'depends': [
Expand All @@ -19,5 +19,5 @@
'security/ir.model.access.csv',
'security/res_users_pass_history.xml',
],
'installable': False,
'installable': True,
}
8 changes: 4 additions & 4 deletions password_security/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import operator

from openerp import http
from openerp.http import request
from openerp.addons.auth_signup.controllers.main import AuthSignupHome
from openerp.addons.web.controllers.main import ensure_db, Session
from odoo import http
from odoo.http import request
from odoo.addons.auth_signup.controllers.main import AuthSignupHome
from odoo.addons.web.controllers.main import ensure_db, Session

from ..exceptions import PassError

Expand Down
2 changes: 1 addition & 1 deletion password_security/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright 2015 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from openerp.exceptions import Warning as UserError
from odoo.exceptions import Warning as UserError


class PassError(UserError):
Expand Down
246 changes: 246 additions & 0 deletions password_security/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * password_security
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: am\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: password_security
#: model:ir.model.fields,help:password_security.field_res_company_password_minimum
msgid "Amount of hours until a user may change password again"
msgstr ""

#. module: password_security
#: code:addons/password_security/models/res_users.py:145
#, python-format
msgid "Cannot use the most recent %d passwords"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_company_password_length
msgid "Characters"
msgstr ""

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

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_create_uid
msgid "Created by"
msgstr "Creado por"

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_create_date
msgid "Created on"
msgstr "Creado en"

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_date
msgid "Date"
msgstr ""

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

#. module: password_security
#: model:ir.model.fields,help:password_security.field_res_company_password_history
msgid ""
"Disallow reuse of this many previous passwords - use negative number for "
"infinite, or 0 to disable"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_display_name
msgid "Display Name"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_password_crypt
msgid "Encrypted Password"
msgstr ""

#. module: password_security
#: model:ir.ui.view,arch_db:password_security.view_company_form
msgid "Extra"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_company_password_history
msgid "History"
msgstr ""

#. module: password_security
#: model:ir.model.fields,help:password_security.field_res_company_password_expiration
msgid "How many days until passwords expire"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_id
msgid "ID"
msgstr "ID"

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history___last_update
msgid "Last Modified on"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_password_write_date
msgid "Last password update"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_company_password_lower
msgid "Lowercase"
msgstr ""

#. module: password_security
#: code:addons/password_security/models/res_users.py:51
#, python-format
msgid "Lowercase letter"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_company_password_minimum
msgid "Minimum Hours"
msgstr ""

#. module: password_security
#: model:ir.model.fields,help:password_security.field_res_company_password_length
msgid "Minimum number of characters"
msgstr ""

#. module: password_security
#: code:addons/password_security/models/res_users.py:59
#, python-format
msgid "Must contain the following:"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_company_password_numeric
msgid "Numeric"
msgstr ""

#. module: password_security
#: code:addons/password_security/models/res_users.py:55
#, python-format
msgid "Numeric digit"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_password_history_ids
msgid "Password History"
msgstr ""

#. module: password_security
#: model:ir.ui.view,arch_db:password_security.view_company_form
msgid "Password Policy"
msgstr ""

#. module: password_security
#: code:addons/password_security/models/res_users.py:62
#, python-format
msgid "Password must be %d characters or more."
msgstr ""

#. module: password_security
#: code:addons/password_security/models/res_users.py:121
#, python-format
msgid ""
"Passwords can only be reset every %d hour(s). Please contact an "
"administrator for assistance."
msgstr ""

#. module: password_security
#: model:ir.model.fields,help:password_security.field_res_company_password_lower
msgid "Require lowercase letters"
msgstr ""

#. module: password_security
#: model:ir.model.fields,help:password_security.field_res_company_password_numeric
msgid "Require numeric digits"
msgstr ""

#. module: password_security
#: model:ir.model.fields,help:password_security.field_res_company_password_special
msgid "Require special characters"
msgstr ""

#. module: password_security
#: model:ir.model.fields,help:password_security.field_res_company_password_upper
msgid "Require uppercase letters"
msgstr ""

#. module: password_security
#: model:ir.ui.view,arch_db:password_security.view_company_form
msgid "Required Characters"
msgstr ""

#. module: password_security
#: model:ir.model,name:password_security.model_res_users_pass_history
msgid "Res Users Password History"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_company_password_special
msgid "Special"
msgstr ""

#. module: password_security
#: code:addons/password_security/models/res_users.py:57
#, python-format
msgid "Special character"
msgstr ""

#. module: password_security
#: model:ir.ui.view,arch_db:password_security.view_company_form
msgid "Timings"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_company_password_upper
msgid "Uppercase"
msgstr ""

#. module: password_security
#: code:addons/password_security/models/res_users.py:53
#, python-format
msgid "Uppercase letter"
msgstr ""

#. module: password_security
#: model:ir.model.fields,field_description:password_security.field_res_users_pass_history_user_id
msgid "User"
msgstr ""

#. module: password_security
#: model:ir.model,name:password_security.model_res_users
msgid "Users"
msgstr ""
Loading

0 comments on commit 78f92d8

Please sign in to comment.