【问题标题】:How to add forgot pasword rest server api in drupal?如何在drupal中添加忘记密码的rest server api?
【发布时间】:2016-12-02 16:20:35
【问题描述】:

我正在开发使用 drupal 7.x rest server api 的应用程序。 我有登录、注销等服务 例如。

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

请帮我从哪里开始。 提前致谢。

【问题讨论】:

    标签: php drupal drupal-7 drupal-modules forgot-password


    【解决方案1】:

    我想,你应该看看this。服务模块允许进行忘记密码请求。

    • 请求类型: POST
    • 资源: ?q=rest/user/request_new_password.json
    • 发送姓名或电子邮件: foofoo@bar.com

    注意:您可能需要稍微更改 Resource 以适应您的项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-03
      • 1970-01-01
      • 2020-11-14
      • 2013-08-03
      • 1970-01-01
      • 2020-10-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多