From 588d3153b832a5ac435bb1c5ec4350af2e0a859b Mon Sep 17 00:00:00 2001 From: ilyas caluwe Date: Wed, 31 Jan 2024 08:51:50 +0100 Subject: [PATCH] [IMP] password_security: pre-commit stuff --- password_security/README.rst | 89 +++++++++---------- password_security/pyproject.toml | 3 + password_security/readme/CONFIGURE.md | 11 +++ password_security/readme/CONFIGURE.rst | 23 ----- password_security/readme/CONTRIBUTORS.md | 21 +++++ password_security/readme/CONTRIBUTORS.rst | 15 ---- password_security/readme/DESCRIPTION.md | 11 +++ password_security/readme/DESCRIPTION.rst | 11 --- .../readme/{USAGE.rst => USAGE.md} | 4 +- .../static/description/index.html | 78 +++------------- 10 files changed, 104 insertions(+), 162 deletions(-) create mode 100644 password_security/pyproject.toml create mode 100644 password_security/readme/CONFIGURE.md delete mode 100644 password_security/readme/CONFIGURE.rst create mode 100644 password_security/readme/CONTRIBUTORS.md delete mode 100644 password_security/readme/CONTRIBUTORS.rst create mode 100644 password_security/readme/DESCRIPTION.md delete mode 100644 password_security/readme/DESCRIPTION.rst rename password_security/readme/{USAGE.rst => USAGE.md} (65%) diff --git a/password_security/README.rst b/password_security/README.rst index eff705daec..a0b8fb91dd 100644 --- a/password_security/README.rst +++ b/password_security/README.rst @@ -17,28 +17,28 @@ Password Security :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github - :target: https://github.com/OCA/server-auth/tree/16.0/password_security + :target: https://github.com/OCA/server-auth/tree/17.0/password_security :alt: OCA/server-auth .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-password_security + :target: https://translation.odoo-community.org/projects/server-auth-17-0/server-auth-17-0-password_security :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module allows admin to set company-level password security requirements -and enforces them on the user. +This module allows admin to set company-level password security +requirements and enforces them on the user. It contains features such as -* Password expiration days -* Password length requirement -* Password minimum number of lowercase letters -* Password minimum number of uppercase letters -* Password minimum number of numbers -* Password minimum number of special characters +- Password expiration days +- Password length requirement +- Password minimum number of lowercase letters +- Password minimum number of uppercase letters +- Password minimum number of numbers +- Password minimum number of special characters **Table of contents** @@ -48,35 +48,23 @@ It contains features such as Configuration ============= -Navigate to General Settings under Configuration -Scroll down to the ``Password Policy`` section -Set the policies to your liking. +Navigate to General Settings under Configuration Scroll down to the +``Password Policy`` section Set the policies to your liking. -Password complexity requirements will be enforced upon next password change for -any user in that company. +Password complexity requirements will be enforced upon next password +change for any user in that company. **Settings & Defaults** These are defined at the company level: -===================== ======= =================================================== - Name Default Description -===================== ======= =================================================== - password_expiration 60 Days until passwords expire - password_length 12 Minimum number of characters in password - password_lower 0 Minimum number of lowercase letter in password - password_upper 0 Minimum number of uppercase letters in password - password_numeric 0 Minimum number of number in password - password_special 0 Minimum number of unique special character in password - password_history 30 Disallow reuse of this many previous passwords - password_minimum 24 Amount of hours that must pass until another reset -===================== ======= =================================================== +[TABLE] Usage ===== -Configure using above instructions for each company that should have password -security mandates. +Configure using above instructions for each company that should have +password security mandates. Bug Tracker =========== @@ -84,7 +72,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -92,7 +80,7 @@ Credits ======= Authors -~~~~~~~ +------- * LasLabs * Onestein @@ -102,26 +90,33 @@ Authors * Omar Nasr Contributors -~~~~~~~~~~~~ +------------ -* James Foster -* Dave Lasley -* Kaushal Prajapati -* Petar Najman -* Shepilov Vladislav -* Florian Kantelberg -* Dhara Solanki +- James Foster -* `Open Source Integrators `_ +- Dave Lasley - * Chandresh Thakkar - * Daniel Reis +- Kaushal Prajapati -* `Onestein `_: - * Andrea Stirpe +- Petar Najman + +- Shepilov Vladislav + +- Florian Kantelberg + +- Dhara Solanki + +- `Open Source Integrators `__ + + - Chandresh Thakkar + - Daniel Reis + +- `Onestein `__: + + - Andrea Stirpe Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -133,6 +128,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/server-auth `_ project on GitHub. +This module is part of the `OCA/server-auth `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/password_security/pyproject.toml b/password_security/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/password_security/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/password_security/readme/CONFIGURE.md b/password_security/readme/CONFIGURE.md new file mode 100644 index 0000000000..77ebcb88a6 --- /dev/null +++ b/password_security/readme/CONFIGURE.md @@ -0,0 +1,11 @@ +Navigate to General Settings under Configuration Scroll down to the +`Password Policy` section Set the policies to your liking. + +Password complexity requirements will be enforced upon next password +change for any user in that company. + +**Settings & Defaults** + +These are defined at the company level: + +[TABLE] diff --git a/password_security/readme/CONFIGURE.rst b/password_security/readme/CONFIGURE.rst deleted file mode 100644 index a9464d271a..0000000000 --- a/password_security/readme/CONFIGURE.rst +++ /dev/null @@ -1,23 +0,0 @@ -Navigate to General Settings under Configuration -Scroll down to the ``Password Policy`` section -Set the policies to your liking. - -Password complexity requirements will be enforced upon next password change for -any user in that company. - -**Settings & Defaults** - -These are defined at the company level: - -===================== ======= =================================================== - Name Default Description -===================== ======= =================================================== - password_expiration 60 Days until passwords expire - password_length 12 Minimum number of characters in password - password_lower 0 Minimum number of lowercase letter in password - password_upper 0 Minimum number of uppercase letters in password - password_numeric 0 Minimum number of number in password - password_special 0 Minimum number of unique special character in password - password_history 30 Disallow reuse of this many previous passwords - password_minimum 24 Amount of hours that must pass until another reset -===================== ======= =================================================== diff --git a/password_security/readme/CONTRIBUTORS.md b/password_security/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..1e3807e673 --- /dev/null +++ b/password_security/readme/CONTRIBUTORS.md @@ -0,0 +1,21 @@ +- James Foster \<\> + +- Dave Lasley \<\> + +- Kaushal Prajapati \<\> + +- Petar Najman \<\> + +- Shepilov Vladislav \<\> + +- Florian Kantelberg \<\> + +- Dhara Solanki \<\> + +- [Open Source Integrators](https://opensourceintegrators.com) + + > - Chandresh Thakkar \<\> + > - Daniel Reis \<\> + +- [Onestein](https://www.onestein.nl): + - Andrea Stirpe \<\> diff --git a/password_security/readme/CONTRIBUTORS.rst b/password_security/readme/CONTRIBUTORS.rst deleted file mode 100644 index 76ad7c31e1..0000000000 --- a/password_security/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,15 +0,0 @@ -* James Foster -* Dave Lasley -* Kaushal Prajapati -* Petar Najman -* Shepilov Vladislav -* Florian Kantelberg -* Dhara Solanki - -* `Open Source Integrators `_ - - * Chandresh Thakkar - * Daniel Reis - -* `Onestein `_: - * Andrea Stirpe diff --git a/password_security/readme/DESCRIPTION.md b/password_security/readme/DESCRIPTION.md new file mode 100644 index 0000000000..dfb72e8926 --- /dev/null +++ b/password_security/readme/DESCRIPTION.md @@ -0,0 +1,11 @@ +This module allows admin to set company-level password security +requirements and enforces them on the user. + +It contains features such as + +- Password expiration days +- Password length requirement +- Password minimum number of lowercase letters +- Password minimum number of uppercase letters +- Password minimum number of numbers +- Password minimum number of special characters diff --git a/password_security/readme/DESCRIPTION.rst b/password_security/readme/DESCRIPTION.rst deleted file mode 100644 index af66c0eefd..0000000000 --- a/password_security/readme/DESCRIPTION.rst +++ /dev/null @@ -1,11 +0,0 @@ -This module allows admin to set company-level password security requirements -and enforces them on the user. - -It contains features such as - -* Password expiration days -* Password length requirement -* Password minimum number of lowercase letters -* Password minimum number of uppercase letters -* Password minimum number of numbers -* Password minimum number of special characters diff --git a/password_security/readme/USAGE.rst b/password_security/readme/USAGE.md similarity index 65% rename from password_security/readme/USAGE.rst rename to password_security/readme/USAGE.md index 310aaccd73..0cc766664c 100644 --- a/password_security/readme/USAGE.rst +++ b/password_security/readme/USAGE.md @@ -1,2 +1,2 @@ -Configure using above instructions for each company that should have password -security mandates. +Configure using above instructions for each company that should have +password security mandates. diff --git a/password_security/static/description/index.html b/password_security/static/description/index.html index 9b69a7b9f2..b36cd7ef08 100644 --- a/password_security/static/description/index.html +++ b/password_security/static/description/index.html @@ -369,9 +369,9 @@

Password Security

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:dc29155c73a519d3732e2806f60bd11ebb31cd8c181ebd5918e4bc68080d37aa !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: LGPL-3 OCA/server-auth Translate me on Weblate Try me on Runboat

-

This module allows admin to set company-level password security requirements -and enforces them on the user.

+

Beta License: LGPL-3 OCA/server-auth Translate me on Weblate Try me on Runboat

+

This module allows admin to set company-level password security +requirements and enforces them on the user.

It contains features such as

  • Password expiration days
  • @@ -397,72 +397,25 @@

    Password Security

    Configuration

    -

    Navigate to General Settings under Configuration -Scroll down to the Password Policy section -Set the policies to your liking.

    -

    Password complexity requirements will be enforced upon next password change for -any user in that company.

    +

    Navigate to General Settings under Configuration Scroll down to the +Password Policy section Set the policies to your liking.

    +

    Password complexity requirements will be enforced upon next password +change for any user in that company.

    Settings & Defaults

    These are defined at the company level:

    - ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameDefaultDescription
    password_expiration60Days until passwords expire
    password_length12Minimum number of characters in password
    password_lower0Minimum number of lowercase letter in password
    password_upper0Minimum number of uppercase letters in password
    password_numeric0Minimum number of number in password
    password_special0Minimum number of unique special character in password
    password_history30Disallow reuse of this many previous passwords
    password_minimum24Amount of hours that must pass until another reset
    +

    [TABLE]

    Usage

    -

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

    +

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

    Bug Tracker

    Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

    +feedback.

    Do not contact contributors directly about support or help with technical issues.

    @@ -503,13 +456,10 @@

    Contributors

-
  • -
    Onestein:
    -
    -
  • @@ -520,7 +470,7 @@

    Maintainers

    OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

    -

    This module is part of the OCA/server-auth project on GitHub.

    +

    This module is part of the OCA/server-auth project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.