1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(pwd) EE-3161 ease the minimum password restrictions to 12 characters (#6921)

* fix(pwd): EE-3161 ease the minimum password restrictions to 12 characters
This commit is contained in:
cong meng 2022-05-12 13:17:01 +12:00 committed by GitHub
parent d9d1d6bfaa
commit 16f8b737f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 65 deletions

View file

@ -2,17 +2,6 @@ import { react2angular } from '@/react-tools/react2angular';
import { MinPasswordLen } from '../helpers/password';
function PasswordCombination() {
return (
<ul className="text-muted">
<li className="ml-8"> Special characters </li>
<li className="ml-8"> Lower case characters </li>
<li className="ml-8"> Upper case characters </li>
<li className="ml-8"> Numeric characters </li>
</ul>
);
}
export function ForcePasswordUpdateHint() {
return (
<div>
@ -25,11 +14,8 @@ export function ForcePasswordUpdateHint() {
</p>
<p className="text-muted">
The password must be at least {MinPasswordLen} characters long,
including a combination of one character of three of the below:
The password must be at least {MinPasswordLen} characters long.
</p>
<PasswordCombination />
</div>
);
}
@ -42,12 +28,9 @@ export function PasswordCheckHint() {
{' '}
</i>
<span>
The password must be at least {MinPasswordLen} characters long,
including a combination of one character of three of the below:
The password must be at least {MinPasswordLen} characters long.
</span>
</p>
<PasswordCombination />
</div>
);
}