# Login user after setting new password

**URL:** <https://forum.keycloak.org/t/login-user-after-setting-new-password/1678>\
**Category:** Getting advice\
**Created:** [March 12, 2020, 4:37pm UTC](https://forum.keycloak.org/t/login-user-after-setting-new-password/1678 "2020-03-12T16:37:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fristi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/fristi/32/488_2.png) [@Fristi](https://forum.keycloak.org/u/Fristi)\
**Post date:** [March 12, 2020, 4:37pm UTC](https://forum.keycloak.org/t/login-user-after-setting-new-password/1678/1 "2020-03-12T16:37:36Z")

</div>

Hi,

I’m using the Keycloak Admin REST API to add new users and after that I issue a required action to update the users password. I already include a redirect\_uri inside that required action so the user ends up at the login page after setting her/his new password.

However we would like to immediately login the new user and return them to the app using a redirect\_uri. Is that possible somehow?

Mark

---

<div class="post-metadata">

**Author:** ![jeffsese-we](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/jeffsese-we/32/3280_2.png) [@jeffsese-we](https://forum.keycloak.org/u/jeffsese-we)\
**Post date:** [June 3, 2021, 3:25am UTC](https://forum.keycloak.org/t/login-user-after-setting-new-password/1678/2 "2021-06-03T03:25:26Z")

</div>

Hi Mark, did you ever got a solution for this? We are having the same issue in our app and despite specifying the client\_id and redirect\_url parameters, it still ends up asking the user to login after setting the password.

Any update on this topic is greatly appreciated.

TIA!
