-
The language used in the backend is Golang, and the Golang SDK is used, can the password be changed directly from the backend? Which interface or method should be called? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
SDK version: github.com/ory/kratos-client-go v0.10.1 |
Beta Was this translation helpful? Give feedback.
-
Now, I get the sessionToken by calling the login interface on the server side, and then I use the sessionToken to call the settings related interface to modify the user’s password. Now it works I want to ask another question: if I want to change the password of another user, and I don’t know the password of that user, and the user is not logged in in the browser, is there a way to change his password? For example, in our own admin portal, to modify the password of other users |
Beta Was this translation helpful? Give feedback.
Hi @704403314
Yes you can do this from the Admin API https://www.ory.sh/docs/reference/api#tag/identity/operation/updateIdentity