[英]How to add forgot pasword rest server api in drupal?
我正在使用drupal 7.x rest服務器api的應用程序上工作。 我有登錄,注銷Ex等服務。
http://sample.com/xyz/xyz_drupal/rest/user/login
POST :
username:user
password:pwd
http://sample.com/xyz/xyz_drupal/rest/user/logout
現在,我想創建忘記密碼的api,但是我是drupal的新手,也不知道補丁的工作原理或添加新服務(如常規drupal服務)。 請幫我。
http://sample.com/xyz/xyz_drupal/rest/user/reset_password
Params will be:
email: xyz@yahoo.com
請幫助我從哪里開始。 提前致謝。
我想,你應該看看this
。 服務模塊允許發出忘記密碼請求。
POST
?q=rest/user/request_new_password.json
foo
或foo@bar.com
注意:您可能需要稍微更改Resource以適合您的項目。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.