first commit
This commit is contained in:
9
calcom/packages/features/auth/lib/validPassword.ts
Normal file
9
calcom/packages/features/auth/lib/validPassword.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export function validPassword(password: string) {
|
||||
if (password.length < 7) return false;
|
||||
|
||||
if (!/[A-Z]/.test(password) || !/[a-z]/.test(password)) return false;
|
||||
|
||||
if (!/\d+/.test(password)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user