how to implement reset password using ory
# ory-copilot
p
how to implement reset password using ory
m
Hello @powerful-ram-10043 You need to @ the bot to get a response 😉 In any case, Ory implements password reset/recovery for you: https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset
p
this is not useful I need to implement the API which will take email as a request and pass a link as a response by using that I can be able to reset the password is there any flow like that
p
Pretty new here, might be wrong, but I think you could use a Recovery Flow. This endpoint would create one for you, although I'm not sure if you should prefer a native or a browser flow. The
request_url
field in the response will contain an URL that can be followed to open the flow.
m
Thanks Nichita, that is correct.
I need to implement the API which will take email as a request and pass a link as a response
This API already exists, with updateRecoveryFlow: https://www.ory.sh/docs/reference/api#tag/frontend/operation/updateRecoveryFlow Here you can pass the flowID and the email and trigger a recovery for that user. The user will receive an email with a link to reset/add the new password. Is that what you are looking for @powerful-ram-10043?
p
@magnificent-energy-493 yes but the link is redirecting me to the ory UI I want to use my UI ory is supporting that also I need one API to update the password
m
In that case you need to configure Ory to use your UI @powerful-ram-10043: https://www.ory.sh/docs/kratos/bring-your-own-ui/configure-ory-to-use-your-ui