https://www.ory.sh/ logo
#talk-kratos
Title
# talk-kratos
b

boundless-hydrogen-45841

11/21/2021, 1:16 PM
is their anyway through which I can get user password in kratos. I am creating a form for updating user password. I want to verify whether the old-password matches or not and only if the password matches I will allow him to update the passsword
b

blue-state-12403

11/21/2021, 2:14 PM
I do not know any way (I looked for this for another reason) to get the plaintext password, and I can understand that it is not possible and why. Maybe you could "fake" it, by trying to log in the user with the password entered and if this succeeds, call the "alter password" flow? This could get a little difficult, because of all the cookie chaos this could result in, but maybe using the api flow will eliminate it?
h

high-optician-2097

11/21/2021, 4:47 PM
@boundless-hydrogen-45841 we have this implemented already as part of the privileged flow - no need to do this yourself
b

blue-state-12403

11/21/2021, 4:49 PM
Is it available already? Could use this for an importing task..
b

boundless-hydrogen-45841

11/21/2021, 6:28 PM
@high-optician-2097 I didnt got your point, what is privileged flow can you elaborate a bit.
3 Views