# Submit Reset Password Code on other page

**URL:** <https://community.dreamfactory.com/t/submit-reset-password-code-on-other-page/4690>\
**Category:** App Configuration\
**Tags:** authentication\
**Created:** [November 13, 2018, 5:20am UTC](https://community.dreamfactory.com/t/submit-reset-password-code-on-other-page/4690 "2018-11-13T05:20:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neurobyte](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@neurobyte](https://community.dreamfactory.com/u/neurobyte)\
**Post date:** [November 13, 2018, 5:20am UTC](https://community.dreamfactory.com/t/submit-reset-password-code-on-other-page/4690/1 "2018-11-13T05:20:33Z")

</div>

Hi ,  
I am working on my app in which , after I submit the request for Forgot password , user will receive the email with an URL1 = **([https://api.mydomain.com/dist/#/reset-password](https://api.mydomain.com/dist/#/reset-password))** and **Reset Password Code**.

I am planning to use my own reset password page with URL2 = [www.myapp.com/reset](http://www.myapp.com/reset), where the user will submit this **Reset Password Code** , **New Password** and **Confirm Password** and my app will submit this code to URL1 automatically.  
Can anyone help me with this ? Do we have a curl command to follow the above mentioned steps ??

---

<div class="post-metadata">

**Author:** ![dchtools](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dchtools/32/1220_2.png) [@dchtools](https://community.dreamfactory.com/u/dchtools)\
**Post date:** [November 25, 2018, 1:48pm UTC](https://community.dreamfactory.com/t/submit-reset-password-code-on-other-page/4690/2 "2018-11-25T13:48:06Z")

</div>

Hi,  
the first step will be to post the email to this API endpoint:

/user/password?reset=true

curl -X “POST” “https:/api.mydomain.com/api/v2/user/password?reset=true”   
-H ‘Content-Type: application/json; charset=utf-8’   
-d $’{  
“email”: "your@email.com"  
}’

In case the server answers with a statusCode 200 you will receive an email with a ‘Reset Password Code’. Make sure you have set up the email template in your Dreamfactory instance under Config-\>Email Templates.

In the second step you have to provide a webpage which receives the parameters (and extract them from the url) from the email (password code, email). This webpage should contain a form which pre-fills the reset code and email address along with an empty password field.

Then you submit the content of the form again to “https:/api.mydomain.com/api/v2/user/password”.

cCurl:

## Request

curl -X “POST” “[https://api.mydomain.com//api/v2/user/password](https://api.mydomain.com//api/v2/user/password)”   
-H ‘Content-Type: application/json; charset=utf-8’   
-d $’{  
“email”: "your@email.com",  
“code”: “578JRGJJ2X2IX3LG08WMAKITM5XMKXRP”,  
“new\_password”: “MyNewPassword”  
}’

Hope this helps to get your app running!  
Regards  
Thomas
