Ramsai
Ramsai11mo ago

Change password for logged in users without sending verification code

Hi team , We have added a change password option to our application. When an user is logged in and want to change his password, we need to send a verification code to the user email. Is there a way where an user can reset/change his password using his old password or as the user is already logged in is there a way to change the password without having to send the verification code. Please help me out on this.
3 Replies
fabienne
fabienne11mo ago
yes, you can user the following request, this is in the authentication api, which means, it is done for the currently authenticated user: https://zitadel.com/docs/apis/resources/auth/auth-service-update-my-password
ZITADEL Docs
Changes the password of the authenticated user. Make sure the password follows the password complexity policy.
Ramsai
RamsaiOP11mo ago
Thanks @fabienne it is working fine!
fabienne
fabienne11mo ago
great to hear

Did you find this page helpful?