Remove email verification requirement
This commit is contained in:
1 parent
ed526b39b1
commit
3c5da024b9
3 files changed
+8
-26
No files matched your search
@@ -87,20 +87,6 @@ export default function Login() {
|
||||
console.log('Login error:', errorMessage, 'Code:', errorCode); // Debug log
|
||||
|
||||
setError(errorMessage);
|
||||
|
||||
// Check if error is about email verification or could be related
|
||||
const isVerificationError =
|
||||
errorMessage.toLowerCase().includes('verify') ||
|
||||
errorMessage.toLowerCase().includes('verification') ||
|
||||
errorCode === 'auth/invalid-credential' ||
|
||||
errorCode === 'auth/user-disabled';
|
||||
|
||||
if (isVerificationError) {
|
||||
setNeedsVerification(true);
|
||||
setResendEmail(email);
|
||||
sessionStorage.setItem('needsVerification', email);
|
||||
console.log('Setting needsVerification to true'); // Debug log
|
||||
}
|
||||
}
|
||||
}
|
||||
setLoading(false);
|
||||
@@ -318,7 +304,7 @@ export default function Login() {
|
||||
<div className="flex-1">
|
||||
<p className="font-bold text-lg mb-2">⚠️ Email Verification Required</p>
|
||||
<p className="mb-2">Your account has been created, but <strong>you must verify your email before you can sign in</strong>.</p>
|
||||
<p className="text-sm text-blue-300 mb-3">A verification email has been sent to <strong>{email}</strong>. Please check your inbox (and spam folder) and click the verification link.</p>
|
||||
<p className="text-sm text-blue-300 mb-3">A verification email has been sent to <strong>{email || resendEmail}</strong>. Please check your inbox (and spam folder) and click the verification link.</p>
|
||||
<div className="bg-blue-950 border border-blue-700 rounded p-3 mb-3 text-sm">
|
||||
<p className="font-semibold mb-1">📧 Didn't receive the email?</p>
|
||||
<p className="text-blue-300 text-xs">It may take a few minutes to arrive. Check your spam/junk folder.</p>
|
||||
|
||||
Reference in new issue
Block a user