Compare commits
2 Commits
26419ba194
...
f6ca709225
| Author | SHA1 | Date |
|---|---|---|
|
|
f6ca709225 | |
|
|
9218d038ae |
|
|
@ -383,11 +383,17 @@ export default function App() {
|
||||||
setAuthLoading(false);
|
setAuthLoading(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!/[^A-Za-z0-9\s]/.test(authPassword)) {
|
if (/\p{Extended_Pictographic}/u.test(authPassword)) {
|
||||||
|
setAuthError('Password must not contain emojis.');
|
||||||
|
setAuthLoading(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?`~]/.test(authPassword)) {
|
||||||
setAuthError('Password must contain at least one special character.');
|
setAuthError('Password must contain at least one special character.');
|
||||||
setAuthLoading(false);
|
setAuthLoading(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const fullPhone = authPhone ? `${authDialCode}${authPhone}` : undefined;
|
const fullPhone = authPhone ? `${authDialCode}${authPhone}` : undefined;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue