I can't believe it but I have sign in with Microsoft working!
This commit is contained in:
12
packages/backend/convex/custom/auth/password/validate.ts
Normal file
12
packages/backend/convex/custom/auth/password/validate.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export const validatePassword = (password: string): boolean => {
|
||||
if (
|
||||
password.length < 8 ||
|
||||
password.length > 100 ||
|
||||
!/\d/.test(password) ||
|
||||
!/[a-z]/.test(password) ||
|
||||
!/[A-Z]/.test(password)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
Reference in New Issue
Block a user