2025-03-01 14:14:43 +01:00
|
|
|
import { Patterns } from '@src/common'
|
2024-01-19 23:38:15 +01:00
|
|
|
import { tools } from '../store/Modules/tools'
|
2021-09-16 21:08:02 +02:00
|
|
|
|
|
|
|
|
export function complexity(password: string) {
|
|
|
|
|
return Patterns.Password.test(password)
|
|
|
|
|
}
|
2022-02-15 12:45:53 +01:00
|
|
|
|
|
|
|
|
export function complexityUser(username: string) {
|
2024-01-19 23:38:15 +01:00
|
|
|
return Patterns.Username.test(tools.rimuoviAtInizio(username))
|
2022-02-15 12:45:53 +01:00
|
|
|
}
|