Hey! Is it possible to patch the identity's passwo...
# talk-kratos
b
Hey! Is it possible to patch the identity's password from the admin API? I've tried the patch identity endpoint but using the JSON path I can only access the hashed_password or password (plain text) fields. I don't think it's appropriate to replicate the Kratos hashing of password strings in my code and assume the plain text isn't magically hashed and ported to the hashed_password field(that would be too easy haha).
m
Hello @bland-furniture-65371 Can you elaborate a bit more on the use case? We have designed the password patching mainly for the “importing existing identities” use case. If the user credential should be updated, we usually assume the user would do this themselves using a “settings” flow.
b
I'm designing functionality where a logged in (i.e session verified) user can update their password in their Account Settings using a simple text input. The reason for wanting to avoid the settings flow is to simplify the user journey and not take them away from their current page into my auth service.