Skip to content

Commit a858641

Browse files
ilyas caluwealexis-via
authored andcommitted
[IMP] password_security: pre-commit stuff
1 parent a9239b2 commit a858641

10 files changed

Lines changed: 104 additions & 162 deletions

File tree

password_security/README.rst

Lines changed: 42 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@ Password Security
1717
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
1818
:alt: License: LGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github
20-
:target: https://github.com/OCA/server-auth/tree/16.0/password_security
20+
:target: https://github.com/OCA/server-auth/tree/17.0/password_security
2121
:alt: OCA/server-auth
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-password_security
23+
:target: https://translation.odoo-community.org/projects/server-auth-17-0/server-auth-17-0-password_security
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

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

3434
It contains features such as
3535

36-
* Password expiration days
37-
* Password length requirement
38-
* Password minimum number of lowercase letters
39-
* Password minimum number of uppercase letters
40-
* Password minimum number of numbers
41-
* Password minimum number of special characters
36+
- Password expiration days
37+
- Password length requirement
38+
- Password minimum number of lowercase letters
39+
- Password minimum number of uppercase letters
40+
- Password minimum number of numbers
41+
- Password minimum number of special characters
4242

4343
**Table of contents**
4444

@@ -48,51 +48,39 @@ It contains features such as
4848
Configuration
4949
=============
5050

51-
Navigate to General Settings under Configuration
52-
Scroll down to the ``Password Policy`` section
53-
Set the policies to your liking.
51+
Navigate to General Settings under Configuration Scroll down to the
52+
``Password Policy`` section Set the policies to your liking.
5453

55-
Password complexity requirements will be enforced upon next password change for
56-
any user in that company.
54+
Password complexity requirements will be enforced upon next password
55+
change for any user in that company.
5756

5857
**Settings & Defaults**
5958

6059
These are defined at the company level:
6160

62-
===================== ======= ===================================================
63-
Name Default Description
64-
===================== ======= ===================================================
65-
password_expiration 60 Days until passwords expire
66-
password_length 12 Minimum number of characters in password
67-
password_lower 0 Minimum number of lowercase letter in password
68-
password_upper 0 Minimum number of uppercase letters in password
69-
password_numeric 0 Minimum number of number in password
70-
password_special 0 Minimum number of unique special character in password
71-
password_history 30 Disallow reuse of this many previous passwords
72-
password_minimum 24 Amount of hours that must pass until another reset
73-
===================== ======= ===================================================
61+
[TABLE]
7462

7563
Usage
7664
=====
7765

78-
Configure using above instructions for each company that should have password
79-
security mandates.
66+
Configure using above instructions for each company that should have
67+
password security mandates.
8068

8169
Bug Tracker
8270
===========
8371

8472
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-auth/issues>`_.
8573
In case of trouble, please check there if your issue has already been reported.
8674
If you spotted it first, help us to smash it by providing a detailed and welcomed
87-
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20password_security%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
75+
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20password_security%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
8876

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

9179
Credits
9280
=======
9381

9482
Authors
95-
~~~~~~~
83+
-------
9684

9785
* LasLabs
9886
* Onestein
@@ -102,26 +90,33 @@ Authors
10290
* Omar Nasr
10391

10492
Contributors
105-
~~~~~~~~~~~~
93+
------------
10694

107-
* James Foster <jfoster@laslabs.com>
108-
* Dave Lasley <dave@laslabs.com>
109-
* Kaushal Prajapati <kbprajapati@live.com>
110-
* Petar Najman <petar.najman@modoolar.com>
111-
* Shepilov Vladislav <shepilov.v@protonmail.com>
112-
* Florian Kantelberg <florian.kantelberg@initos.com>
113-
* Dhara Solanki <dhara.solanki@initos.com>
95+
- James Foster <jfoster@laslabs.com>
11496

115-
* `Open Source Integrators <https://opensourceintegrators.com>`_
97+
- Dave Lasley <dave@laslabs.com>
11698

117-
* Chandresh Thakkar <cthakkar@opensourceintegrators.com>
118-
* Daniel Reis <dreis@opensourceintegrators.com>
99+
- Kaushal Prajapati <kbprajapati@live.com>
119100

120-
* `Onestein <https://www.onestein.nl>`_:
121-
* Andrea Stirpe <a.stirpe@onestein.nl>
101+
- Petar Najman <petar.najman@modoolar.com>
102+
103+
- Shepilov Vladislav <shepilov.v@protonmail.com>
104+
105+
- Florian Kantelberg <florian.kantelberg@initos.com>
106+
107+
- Dhara Solanki <dhara.solanki@initos.com>
108+
109+
- `Open Source Integrators <https://opensourceintegrators.com>`__
110+
111+
- Chandresh Thakkar <cthakkar@opensourceintegrators.com>
112+
- Daniel Reis <dreis@opensourceintegrators.com>
113+
114+
- `Onestein <https://www.onestein.nl>`__:
115+
116+
- Andrea Stirpe <a.stirpe@onestein.nl>
122117

123118
Maintainers
124-
~~~~~~~~~~~
119+
-----------
125120

126121
This module is maintained by the OCA.
127122

@@ -133,6 +128,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
133128
mission is to support the collaborative development of Odoo features and
134129
promote its widespread use.
135130

136-
This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/16.0/password_security>`_ project on GitHub.
131+
This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/17.0/password_security>`_ project on GitHub.
137132

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

password_security/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Navigate to General Settings under Configuration Scroll down to the
2+
`Password Policy` section Set the policies to your liking.
3+
4+
Password complexity requirements will be enforced upon next password
5+
change for any user in that company.
6+
7+
**Settings & Defaults**
8+
9+
These are defined at the company level:
10+
11+
[TABLE]

password_security/readme/CONFIGURE.rst

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
- James Foster \<<jfoster@laslabs.com>\>
2+
3+
- Dave Lasley \<<dave@laslabs.com>\>
4+
5+
- Kaushal Prajapati \<<kbprajapati@live.com>\>
6+
7+
- Petar Najman \<<petar.najman@modoolar.com>\>
8+
9+
- Shepilov Vladislav \<<shepilov.v@protonmail.com>\>
10+
11+
- Florian Kantelberg \<<florian.kantelberg@initos.com>\>
12+
13+
- Dhara Solanki \<<dhara.solanki@initos.com>\>
14+
15+
- [Open Source Integrators](https://opensourceintegrators.com)
16+
17+
> - Chandresh Thakkar \<<cthakkar@opensourceintegrators.com>\>
18+
> - Daniel Reis \<<dreis@opensourceintegrators.com>\>
19+
20+
- [Onestein](https://www.onestein.nl):
21+
- Andrea Stirpe \<<a.stirpe@onestein.nl>\>

password_security/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
This module allows admin to set company-level password security
2+
requirements and enforces them on the user.
3+
4+
It contains features such as
5+
6+
- Password expiration days
7+
- Password length requirement
8+
- Password minimum number of lowercase letters
9+
- Password minimum number of uppercase letters
10+
- Password minimum number of numbers
11+
- Password minimum number of special characters

password_security/readme/DESCRIPTION.rst

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Configure using above instructions for each company that should have password
2-
security mandates.
1+
Configure using above instructions for each company that should have
2+
password security mandates.

password_security/static/description/index.html

Lines changed: 14 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@ <h1 class="title">Password Security</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:dc29155c73a519d3732e2806f60bd11ebb31cd8c181ebd5918e4bc68080d37aa
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-auth/tree/16.0/password_security"><img alt="OCA/server-auth" src="https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-password_security"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-auth&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373-
<p>This module allows admin to set company-level password security requirements
374-
and enforces them on the user.</p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-auth/tree/17.0/password_security"><img alt="OCA/server-auth" src="https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-auth-17-0/server-auth-17-0-password_security"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-auth&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373+
<p>This module allows admin to set company-level password security
374+
requirements and enforces them on the user.</p>
375375
<p>It contains features such as</p>
376376
<ul class="simple">
377377
<li>Password expiration days</li>
@@ -397,72 +397,25 @@ <h1 class="title">Password Security</h1>
397397
</div>
398398
<div class="section" id="configuration">
399399
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
400-
<p>Navigate to General Settings under Configuration
401-
Scroll down to the <tt class="docutils literal">Password Policy</tt> section
402-
Set the policies to your liking.</p>
403-
<p>Password complexity requirements will be enforced upon next password change for
404-
any user in that company.</p>
400+
<p>Navigate to General Settings under Configuration Scroll down to the
401+
<tt class="docutils literal">Password Policy</tt> section Set the policies to your liking.</p>
402+
<p>Password complexity requirements will be enforced upon next password
403+
change for any user in that company.</p>
405404
<p><strong>Settings &amp; Defaults</strong></p>
406405
<p>These are defined at the company level:</p>
407-
<table border="1" class="docutils">
408-
<colgroup>
409-
<col width="26%" />
410-
<col width="9%" />
411-
<col width="66%" />
412-
</colgroup>
413-
<thead valign="bottom">
414-
<tr><th class="head">Name</th>
415-
<th class="head">Default</th>
416-
<th class="head">Description</th>
417-
</tr>
418-
</thead>
419-
<tbody valign="top">
420-
<tr><td>password_expiration</td>
421-
<td>60</td>
422-
<td>Days until passwords expire</td>
423-
</tr>
424-
<tr><td>password_length</td>
425-
<td>12</td>
426-
<td>Minimum number of characters in password</td>
427-
</tr>
428-
<tr><td>password_lower</td>
429-
<td>0</td>
430-
<td>Minimum number of lowercase letter in password</td>
431-
</tr>
432-
<tr><td>password_upper</td>
433-
<td>0</td>
434-
<td>Minimum number of uppercase letters in password</td>
435-
</tr>
436-
<tr><td>password_numeric</td>
437-
<td>0</td>
438-
<td>Minimum number of number in password</td>
439-
</tr>
440-
<tr><td>password_special</td>
441-
<td>0</td>
442-
<td>Minimum number of unique special character in password</td>
443-
</tr>
444-
<tr><td>password_history</td>
445-
<td>30</td>
446-
<td>Disallow reuse of this many previous passwords</td>
447-
</tr>
448-
<tr><td>password_minimum</td>
449-
<td>24</td>
450-
<td>Amount of hours that must pass until another reset</td>
451-
</tr>
452-
</tbody>
453-
</table>
406+
<p>[TABLE]</p>
454407
</div>
455408
<div class="section" id="usage">
456409
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
457-
<p>Configure using above instructions for each company that should have password
458-
security mandates.</p>
410+
<p>Configure using above instructions for each company that should have
411+
password security mandates.</p>
459412
</div>
460413
<div class="section" id="bug-tracker">
461414
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
462415
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-auth/issues">GitHub Issues</a>.
463416
In case of trouble, please check there if your issue has already been reported.
464417
If you spotted it first, help us to smash it by providing a detailed and welcomed
465-
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20password_security%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
418+
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20password_security%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
466419
<p>Do not contact contributors directly about support or help with technical issues.</p>
467420
</div>
468421
<div class="section" id="credits">
@@ -503,13 +456,10 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
503456
</ul>
504457
</blockquote>
505458
</li>
506-
<li><dl class="first docutils">
507-
<dt><a class="reference external" href="https://www.onestein.nl">Onestein</a>:</dt>
508-
<dd><ul class="first last simple">
459+
<li><p class="first"><a class="reference external" href="https://www.onestein.nl">Onestein</a>:</p>
460+
<ul class="simple">
509461
<li>Andrea Stirpe &lt;<a class="reference external" href="mailto:a.stirpe&#64;onestein.nl">a.stirpe&#64;onestein.nl</a>&gt;</li>
510462
</ul>
511-
</dd>
512-
</dl>
513463
</li>
514464
</ul>
515465
</div>
@@ -520,7 +470,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
520470
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
521471
mission is to support the collaborative development of Odoo features and
522472
promote its widespread use.</p>
523-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-auth/tree/16.0/password_security">OCA/server-auth</a> project on GitHub.</p>
473+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-auth/tree/17.0/password_security">OCA/server-auth</a> project on GitHub.</p>
524474
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
525475
</div>
526476
</div>

0 commit comments

Comments
 (0)