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

@@ -3,3 +3,7 @@ import { Patterns } from '@/common'
export function complexity(password: string) {
return Patterns.Password.test(password)
}
export function complexityUser(username: string) {
return Patterns.Username.test(username)
}

View File

@@ -2,6 +2,6 @@ export { duplicate } from './duplicate'
export { registereduser } from './registereduser'
export { aportadorexist } from './aportadorexist'
export { registeredemail } from './registeredemail'
export { complexity } from './complexity'
export { complexity, complexityUser } from './complexity'
export { alfanum } from './alfanum'
export { email } from './email'