API:Resetpassword/Sample code 1