# Page has expired on Forget Password Flow

**URL:** <https://forum.keycloak.org/t/page-has-expired-on-forget-password-flow/5291>\
**Category:** Getting advice\
**Tags:** authentication\
**Created:** [October 9, 2020, 6:22pm UTC](https://forum.keycloak.org/t/page-has-expired-on-forget-password-flow/5291 "2020-10-09T18:22:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![victormag](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/victormag/32/1012_2.png) [@victormag](https://forum.keycloak.org/u/victormag)\
**Post date:** [October 9, 2020, 6:22pm UTC](https://forum.keycloak.org/t/page-has-expired-on-forget-password-flow/5291/1 "2020-10-09T18:22:45Z")

</div>

Hi all,

We’re using Keycloak 11.0.1

We’re getting Page has expired page on Forget Password Flow after  
submitting your username. Below are the steps that we are following:

On clicking “Forgot Password?” from Login screen  
Redirects to “Forgot Your Password?” screen, where it accepts username and  
allow to submit the form.  
Shows “Page has expired” screen with two options:-

To restart the login process Click here .  
To continue the login process Click here .

Please advise, what is wrong with our Keycloak configuration.

---

<div class="post-metadata">

**Author:** ![walmeida](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@walmeida](https://forum.keycloak.org/u/walmeida)\
**Post date:** [November 10, 2021, 3:13am UTC](https://forum.keycloak.org/t/page-has-expired-on-forget-password-flow/5291/2 "2021-11-10T03:13:26Z")

</div>

Hi Victor

I’m facing this same problem here, were you able to solve this problem ?

Thanks!

---

<div class="post-metadata">

**Author:** ![victormag](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/victormag/32/1012_2.png) [@victormag](https://forum.keycloak.org/u/victormag)\
**Post date:** [November 10, 2021, 12:14pm UTC](https://forum.keycloak.org/t/page-has-expired-on-forget-password-flow/5291/3 "2021-11-10T12:14:33Z")

</div>

Yes!

The problem I believe is the user who would like to reset the password, double click the quick submit button. In the second request the token changes, thus giving the mentioned problem.

I solved the problem by blocking the submit button on the first request using javascript.

I rewrote the theme template in the file: login/login-reset-password.ftl

Here’s the resolution commit:

> <https://github.com/FeliciLab/IdentidadeUnicaDeSaude/commit/86ccc52baf022da34bc46994dce8c7260853f464>

---

<div class="post-metadata">

**Author:** ![walmeida](https://avatars.discourse-cdn.com/v4/letter/w/edb3f5/32.png) [@walmeida](https://forum.keycloak.org/u/walmeida)\
**Post date:** [November 10, 2021, 7:13pm UTC](https://forum.keycloak.org/t/page-has-expired-on-forget-password-flow/5291/4 "2021-11-10T19:13:34Z")

</div>

Hi,

Thank you very much Victor, I managed to solve my problem here… and it was also really cool to see the reference project using keycloak.
