Forget password and Sign Up rest api in frappe app

Hi All,

I want to access the rest api url for forget password for an frappe app.
I have gone through frappe rest api

There I found POST http://frappe.local:8000/api/method/login

Similarly, how can I find other methods like POST http://frappe.local:8000/api/method/forget_passord etc.

@Sagar_Madke
There is no in-built API for forget password like they have given for login in REST API.
You will have to define your own function in python and call that function in REST API .

Thanks,
Mohini

1 Like

Thanks for your kind reply.

@Sagar_Madke

Please check user.py file

For signup, you can use following api

http://erp.domain.com/api/method/frappe.core.doctype.user.user.sign_up?email=%22sam@gmail.com%22&full_name=%22samkk%22&redirect_to=%22url%22

For reset password
http://erp.domain.com/api/method/frappe.core.doctype.user.user.reset_password?user=%22samk@gmail.com%22

2 Likes