minimo 6 caratteri la registrazione username

Ridurre a 3 gli stati ContribTypes (
aggiornato il regex dell'username in fase di registrazione: caratteri speciali consentiti solo all'interno di una parola
This commit is contained in:
paoloar77
2022-02-15 12:45:53 +01:00
parent e7f65ceb16
commit 10f10d874b
18 changed files with 39 additions and 16 deletions

View File

@@ -14,7 +14,11 @@ export class Patterns {
*
* public static Password: RegExp = /^((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%!\-]).{6,20})/i
*
* 8 to 20 characters string with at least one digit, one upper case letter, one lower case letter and one special symbol
* 6 to 30 characters string with at least one digit, one upper case letter, one lower case letter and one special symbol
*/
public static Username = /^[a-zA-Z0-9]+([_@.-]?[a-zA-Z0-9])*$/i
// * 8 to 20 characters string with at least one digit, one upper case letter, one lower case letter
public static Password = /^((?=.*[A-Z])(?=.*\d)(?!.* ).{8,30})/i
}