I am developing a client side application and using AngularJS for this. I successfully registered a user.

Now my problem is that I cannot find a way to check the validity of one time login url or any end point provided by Services module?

Anybody an idea?


Note: I have not tried this solution myself, but think it should work.

Some concepts about one time login URL

  1. You cannot just visit the URL (or even request it via a service, or any other request like curl or wget) to check if it is valid. As the name it is for one time use only.
  2. It is valid for 24 hours from time it is generated.

These couple of things need to be taken into consideration while validating the login URL.

The URL where the check (and login) of a user happens is user/reset/%/%/%, where the dynamic arguments are in order : user id, timestamp of the one time login url creation, and the hash of the password.

To implement your solution, I suggest you to create a custom service endpoint and implement the logic which is implemented in user_pass_reset.
You can just skip the part where the function actually logs the user in.


As AjitS suggested i created custom endpoint for services. I wrote a blog

It has all the steps and code.

  • 1
    Awesome! It is really good that you blogged your entire solution. +1 :-) – AjitS May 27 '15 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.