Requesting a new password

by Mohammed Gomma   Last Updated April 19, 2018 20:07 PM

I need to request a new password via services.

I used the URL: <endpoint>/user/password?args['name']=test2

but it returns Access denied for user anonymous

It's supposed to be used by non authenticated users so why does it return this error?. What am I doing wrong here? What is the URL should I use?

Tags : services 8


Answers 2


According to this sandbox (from two years ago):

Services module provides integration with User module but it does not provide the service to request a new password in case a user has forgotten it.

The sandbox claims to fix that.

Darvanen
Darvanen
February 17, 2015 23:40 PM

This feature was added with the resolution of this issue:

To use this resource, make a POST to:

?q=rest/user/request_new_password.json

...and send along a name

name=john

...or e-mail address:

[email protected]
tyler.frankenstein
tyler.frankenstein
February 18, 2015 04:00 AM

Related Questions




Webservice endpoint with hook_services_resources()

Updated April 13, 2015 20:03 PM