Update index.html

Ryan Danenberg committed commit9eef8b376c59ee29f7a2ceb7effa57eefe4154fc Browse files
1 file changed+4−10
index.html+4−10View file
@@ -1876,16 +1876,10 @@
token = data.token || data.accessToken || data.jwt;
user = data.user || data;
if (!token) {
- const loginRes = await fetch('/api/auth/login', {
- method: 'POST',
- headers: { 'Content-Type': 'application/json' },
- body: JSON.stringify({ email, password })
- });
- if (loginRes.ok) {
- const loginData = await loginRes.json();
- token = loginData.token || loginData.accessToken || loginData.jwt;
- user = loginData.user || user;
- }
+ setAuthModalMode('login', true);
+ showAuthNotice('Verification Email Sent', `Registration successful! A verification link has been sent to ${email}. Please check your email and verify your address before logging in.`);
+ showToast('Account Created', 'Please check your email to verify your address.', 'info');
+ return;
}
} else {
const errData = await res.json().catch(() => ({}));