From 10f10d874b5498b56ce98964794e0a71434ae946 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Tue, 15 Feb 2022 12:45:53 +0100 Subject: [PATCH] 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 --- src/common/pattern.ts | 6 +++++- src/components/CMyPopupEdit/CMyPopupEdit.vue | 6 +++--- src/components/CSignIn/CSignIn.vue | 2 +- src/components/CSignUp/CSignUp.ts | 3 ++- src/components/CSkill/CSkill.ts | 1 + src/statics/lang/de.js | 1 + src/statics/lang/enUs.js | 1 + src/statics/lang/es.js | 1 + src/statics/lang/fr.js | 1 + src/statics/lang/it.js | 3 ++- src/statics/lang/pt.js | 1 + src/statics/lang/si.js | 1 + src/store/Modules/costanti.ts | 1 + src/store/Modules/fieldsTable.ts | 6 +++--- src/store/Modules/tools.ts | 5 +++++ src/validation/complexity.ts | 4 ++++ src/validation/index.ts | 2 +- src/views/admin/dbop/dbop.vue | 10 +++++----- 18 files changed, 39 insertions(+), 16 deletions(-) diff --git a/src/common/pattern.ts b/src/common/pattern.ts index 820cc88c..ecc53f7e 100755 --- a/src/common/pattern.ts +++ b/src/common/pattern.ts @@ -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 } diff --git a/src/components/CMyPopupEdit/CMyPopupEdit.vue b/src/components/CMyPopupEdit/CMyPopupEdit.vue index 49897b4b..dec9b155 100755 --- a/src/components/CMyPopupEdit/CMyPopupEdit.vue +++ b/src/components/CMyPopupEdit/CMyPopupEdit.vue @@ -384,7 +384,7 @@ :useinput="isInModif"> -
+
@@ -701,7 +701,7 @@ :optlab="fieldsTable.getLabelByTable(col.jointable)">
-
+