mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-05-14 01:21:49 +00:00
fix: dev-web - fix expiration token
This commit is contained in:
@@ -24,7 +24,7 @@ public class ResetPasswordServlet extends HttpServlet {
|
||||
response.sendRedirect(request.getContextPath() + "/forgotten-password?error=invalid-token");
|
||||
return;
|
||||
}
|
||||
if (token.getExpirationDate().compareTo(new java.util.Date()) > 0){
|
||||
if (token.getExpirationDate().compareTo(new java.util.Date()) < 0){
|
||||
response.sendRedirect(request.getContextPath() + "/forgotten-password?error=expired-token");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user