# Update Password in a New Window

**URL:** <https://forum.keycloak.org/t/update-password-in-a-new-window/26600>\
**Category:** Getting advice\
**Tags:** authentication\
**Created:** [June 20, 2024, 1:46pm UTC](https://forum.keycloak.org/t/update-password-in-a-new-window/26600 "2024-06-20T13:46:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/lars/32/6114_2.png) [@Lars](https://forum.keycloak.org/u/Lars)\
**Post date:** [June 20, 2024, 1:46pm UTC](https://forum.keycloak.org/t/update-password-in-a-new-window/26600/1 "2024-06-20T13:46:30Z")

</div>

Hi there,

I´m currently migrating a custom Keycloak theme for a Angular application from KC 21 to KC 24.

My custom theme modifies the _login_ and _account_ sections.

My application has a update password link to /auth/realms/[realm name]/account/password. If a user followes that link, a new small window opens, where the user can enter their new password:

![update_password](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/1/15b1ddce442ac87565a6fc11dc885bef557a6974.png)

This is how it works with Keycloak 21.

In Keycloak 24 when clicking on this link the user sees my whole login page with the login dialog only showing “page not found”.

I´m not sure where to look for the cause for this behavior - in my theme or in the keycloak configuration?

Thanks in advance  
Lars

PS: I´m aware I could use a link like this

/[auth/]realms/[realm name]/protocol/openid-connect/auth?response\_type=code&client\_id=\<CLIENT\_ID\>&redirect\_uri=&kc\_action=UPDATE\_PASSWORD

This works, but this also shows me the complete login page with the update password dialogue in the center instead of only the update password dialogue.

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [June 20, 2024, 1:55pm UTC](https://forum.keycloak.org/t/update-password-in-a-new-window/26600/2 "2024-06-20T13:55:18Z")

</div>

What you are currently using in 21 is still the “old” account console, which was deprecated for a long time and is no more available in recent versions.

The legit way of letting users updating their password is through the required action, like you already mentioned (the link with `kc_action=UPDATE_PASSWORD`).

---

<div class="post-metadata">

**Author:** ![Lars](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/lars/32/6114_2.png) [@Lars](https://forum.keycloak.org/u/Lars)\
**Post date:** [June 20, 2024, 3:30pm UTC](https://forum.keycloak.org/t/update-password-in-a-new-window/26600/3 "2024-06-20T15:30:35Z")

</div>

Thank you for your reply.

This might be a bit off-topic, but when using the URL

/[auth/]realms/[realm name]/protocol/openid-connect/auth?response\_type=code&client\_id=\<CLIENT\_ID\>&redirect\_uri=&kc\_action=UPDATE\_PASSWORD

the page opening uses the **login** -section of my theme. I would expect the **account** -section instead.

Is this also something, that has changed with the new account console? Or can I somehow control, which part oh my theme is used when following the link above?

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [June 20, 2024, 4:03pm UTC](https://forum.keycloak.org/t/update-password-in-a-new-window/26600/4 "2024-06-20T16:03:53Z")

</div>

Actually you are calling the `auth` endpoint and initiate an authentication. You can even call this url if the user is not logged in, he/she then hast to authenticate and can then update the password.  
Required actions are part of the authentication in Keycloak.  
You can’t use the account theme in login processes.
