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 or foo@bar.com

note: may have change resource bit suit project.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -