You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second one contains the same line with the force password reset function
The code is working fine, but the problem is when the OTP is valid in one route, it's not valid in another, it says expired
This means I can only use that OTP in one route
Do you know how I can fix this?
Also, how can I clear the Expired codes
Note: I'm using database/mysql as cache driver
The text was updated successfully, but these errors were encountered:
To implement password reset you will need three routes.
/forgot-password
/verify-otp
/reset-password
In the first route we will send the password reset OTP.
Second route will verify the OTP and automatically create a session in the cache for a password reset for that email.
Last route will accept an email address and a new password to update.
Yup I know and I already have those 3 routes
The problem is when the OTP is verified in the first time (in verify-otp) in the next route it says not valid
Yup I know and I already have those 3 routes The problem is when the OTP is verified in the first time (in verify-otp) in the next route it says not valid
I created two API routes
/verify-OTP
/reset-password
The first one contains this code
The second one contains the same line with the force password reset function
The code is working fine, but the problem is when the OTP is valid in one route, it's not valid in another, it says expired
This means I can only use that OTP in one route
Do you know how I can fix this?
Also, how can I clear the Expired codes
Note: I'm using database/mysql as cache driver
The text was updated successfully, but these errors were encountered: