php - How to add forgot pasword rest server api in drupal? -
i working on app uses drupal 7.x rest server api. have service login, logout ex.
http://sample.com/xyz/xyz_drupal/rest/user/login post : username:user password:pwd http://sample.com/xyz/xyz_drupal/rest/user/logout
now, want create forgot password api new on drupal , no idea how patch works or add new service regular drupal service. please me.
http://sample.com/xyz/xyz_drupal/rest/user/reset_password params be: email: xyz@yahoo.com
please me start. in advance.
i think, should take @ this
. services module allows make forgot password request.
- request type:
post
- resource:
?q=rest/user/request_new_password.json
- send name or email:
foo
orfoo@bar.com
note: may have change resource bit suit project.
Comments
Post a Comment