"OTP Sent Successfully" Message Displayed After Sending OTP

This commit is contained in:
Kartik sharma 2025-07-01 12:33:57 +05:30
parent bb9c351189
commit 5d99f11297

View File

@ -53,6 +53,7 @@ const LoginPage = () => {
navigate("/dashboard"); navigate("/dashboard");
} else { } else {
await AuthRepository.sendOTP({ email: data.username }); await AuthRepository.sendOTP({ email: data.username });
showToast("OTP has been sent to your email.", "success");
localStorage.setItem("otpUsername", data.username); localStorage.setItem("otpUsername", data.username);
localStorage.setItem("otpSentTime", now.toString()); localStorage.setItem("otpSentTime", now.toString());
navigate("/auth/login-otp"); navigate("/auth/login-otp");