|
118 | 118 | </li> |
119 | 119 | <li class="toctree-l2"><a class="reference internal" href="#password-reuse-prevention">Password Reuse Prevention</a> |
120 | 120 | </li> |
121 | | - <li class="toctree-l2"><a class="reference internal" href="#account-lockout">Account Lockout</a> |
122 | | - </li> |
123 | 121 | <li class="toctree-l2"><a class="reference internal" href="#example-configuration">Example Configuration</a> |
124 | 122 | </li> |
125 | 123 | </ul> |
126 | 124 | </li> |
| 125 | + <li class="toctree-l1"><a class="reference internal" href="../security-policies/">Security Policies</a> |
| 126 | + </li> |
127 | 127 | </ul> |
128 | 128 | <p class="caption"><span class="caption-text">User Guide</span></p> |
129 | 129 | <ul> |
@@ -281,30 +281,27 @@ <h2 id="password-reuse-prevention">Password Reuse Prevention</h2> |
281 | 281 | <li><strong>enable_reuse_prevention</strong>: Enable or disable prevention of password reuse. Default: <code>false</code>.</li> |
282 | 282 | <li><strong>prevent_reuse</strong>: Number of previous passwords to check against for reuse. Default: <code>5</code>.</li> |
283 | 283 | </ul> |
284 | | -<h2 id="account-lockout">Account Lockout</h2> |
285 | | -<p><strong>Note:</strong> The following settings are not implemented yet.</p> |
286 | | -<ul> |
287 | | -<li><strong>enable_lockout</strong>: Enable or disable account lockout after multiple failed login attempts. Default: <code>false</code>.</li> |
288 | | -<li><strong>lockout_attempts</strong>: Number of failed login attempts before account is locked. Default: <code>5</code>.</li> |
289 | | -<li><strong>lockout_duration</strong>: Duration of the lockout in minutes. Default: <code>15</code>.</li> |
290 | | -</ul> |
291 | 284 | <p>These settings can be customized by modifying the <code>config/password_policy.php</code> file. The default values are provided by |
292 | | -the <a href="https://github.com/poweradmin/poweradmin/blob/b45f03be40b1194863739a44fea91500ff71b25c/lib/Domain/Config/PasswordPolicyDefaults.php">PasswordPolicyDefaults</a> class.</p> |
| 285 | +the <a href="https://github.com/poweradmin/poweradmin/blob/master/lib/Domain/Config/PasswordPolicyDefaults.php">PasswordPolicyDefaults</a> |
| 286 | +class.</p> |
293 | 287 | <h2 id="example-configuration">Example Configuration</h2> |
294 | 288 | <p>To enable the currently defined password policies, you can update the <code>config/password_policy.php</code> file with the |
295 | 289 | following content:</p> |
296 | 290 | <pre><code class="language-php"><?php |
297 | 291 |
|
298 | 292 | return [ |
299 | 293 | 'enable_password_rules' => true, |
300 | | - 'enable_lockout' => true, |
301 | 294 | ]; |
302 | 295 | </code></pre> |
| 296 | +<p>When <code>enable_password_rules</code> is set to <code>true</code>, passwords will be required to be at least 6 characters long and contain |
| 297 | +at least one uppercase letter, one lowercase letter, and one number. Special characters are not required by default, but |
| 298 | +when used, they must be from the allowed set: <code>!@#$%^&*()+-=[]{}|;:,.<>?</code></p> |
303 | 299 |
|
304 | 300 | </div> |
305 | 301 | </div><footer> |
306 | 302 | <div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation"> |
307 | 303 | <a href="../../installation/composer/" class="btn btn-neutral float-left" title="Composer"><span class="icon icon-circle-arrow-left"></span> Previous</a> |
| 304 | + <a href="../security-policies/" class="btn btn-neutral float-right" title="Security Policies">Next <span class="icon icon-circle-arrow-right"></span></a> |
308 | 305 | </div> |
309 | 306 |
|
310 | 307 | <hr/> |
@@ -334,6 +331,8 @@ <h2 id="example-configuration">Example Configuration</h2> |
334 | 331 | <span><a href="../../installation/composer/" style="color: #fcfcfc">« Previous</a></span> |
335 | 332 |
|
336 | 333 |
|
| 334 | + <span><a href="../security-policies/" style="color: #fcfcfc">Next »</a></span> |
| 335 | + |
337 | 336 | </span> |
338 | 337 | </div> |
339 | 338 | <script src="../../js/jquery-3.6.0.min.js"></script> |
|
0 commit comments