We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec408dd commit c089be3Copy full SHA for c089be3
1 file changed
resources/js/components/AuthModal.vue
@@ -1539,6 +1539,11 @@ const goBackStep = () => {
1539
1540
const handleLogin = async () => {
1541
clearMessages();
1542
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
1543
+ if (!emailRegex.test(form.value.email)) {
1544
+ setError("Please enter a valid email address.");
1545
+ return;
1546
+ }
1547
loading.value = true;
1548
1549
try {
0 commit comments