2016-05-16 21:01:21 +00:00
2024-02-27 16:32:51 +00:00
[[enabling-forgot-password]]
2021-06-17 14:39:30 +00:00
== Enabling forgot password
2016-05-16 21:01:21 +00:00
2023-03-13 10:17:41 +00:00
If you enable `Forgot password`, users can reset their login credentials if they forget their passwords or lose their OTP generator.
2016-05-16 21:01:21 +00:00
2021-02-11 20:45:00 +00:00
.Procedure
2022-07-26 15:50:24 +00:00
. Click *Realm settings* in the menu.
2021-02-11 20:45:00 +00:00
. Click the *Login* tab.
+
2021-06-17 14:39:30 +00:00
.Login tab
2022-10-05 18:43:15 +00:00
image:images/login-tab.png[Login Tab]
2021-02-11 20:45:00 +00:00
+
2022-07-26 15:50:24 +00:00
. Toggle *Forgot password* to *ON*.
2021-02-16 22:13:57 +00:00
+
2022-07-26 15:50:24 +00:00
A `Forgot Password?` link displays in your login pages.
2021-02-16 22:13:57 +00:00
+
2021-06-17 14:39:30 +00:00
.Forgot password link
2022-10-05 18:43:15 +00:00
image:images/forgot-password-link.png[Forgot Password Link]
2023-03-13 10:17:41 +00:00
+
. Specify `Host` and `From` in the *Email* tab in order for Keycloak to be able to send the reset email.
+
2021-02-16 22:13:57 +00:00
. Click this link to bring users where they can enter their username or email address and receive an email with a link to reset their credentials.
+
2021-06-17 14:39:30 +00:00
.Forgot password page
2022-10-05 18:43:15 +00:00
image:images/forgot-password-page.png[Forgot Password Page]
2016-05-16 21:01:21 +00:00
2021-02-11 20:45:00 +00:00
The text sent in the email is configurable. See link:{developerguide_link}[{developerguide_name}] for more information.
2016-05-16 21:01:21 +00:00
2021-02-11 20:45:00 +00:00
When users click the email link, {project_name} asks them to update their password, and if they have set up an OTP generator, {project_name} asks them to reconfigure the OTP generator. Depending on security requirements of your organization, you may not want users to reset their OTP generator through email.
2016-05-16 21:01:21 +00:00
2021-02-16 22:13:57 +00:00
To change this behavior, perform these steps:
2016-05-16 21:01:21 +00:00
2021-02-11 20:45:00 +00:00
.Procedure
. Click *Authentication* in the menu.
. Click the *Flows* tab.
. Select the *Reset Credentials* flow.
+
2021-06-17 14:39:30 +00:00
.Reset credentials flow
2022-10-05 18:43:15 +00:00
image:images/reset-credentials-flow.png[Reset Credentials Flow]
2021-02-11 20:45:00 +00:00
+
2024-02-07 10:51:21 +00:00
If you do not want to reset the OTP, set the `Reset - Conditional OTP` sub-flow requirement to *Disabled*.
2022-07-26 15:50:24 +00:00
. Click *Authentication* in the menu.
2023-03-13 10:17:41 +00:00
. Click the *Required actions* tab.
2022-07-26 15:50:24 +00:00
. Ensure *Update Password* is enabled.
+
.Required Actions
2022-10-05 18:43:15 +00:00
image:images/reset-credentials-required-actions.png[Required Actions]