1

How can I create a one-time URL (sent through email messages) users can use to change the value of a custom field?

1

Unfortunately Drupal requires that users reset their passwords when using the one time login link.

The easiest way to avoid that would be to use a module like URL Login, which generates login links for each of your users. There are a couple of modules which cater for similar use cases so you'll need to find out which one works best for you.

You can then use LogginToboggan to redirect your users to your custom page where they can edit the custom field. You may need to create a custom User Role depending on the need for access control.

| improve this answer | |
1

Fortunatelly, there is a way.

You can copy function "user_pass_reset_url" and form "user_pass_reset" and customize it for your needs. With first you create custom link and with the second you can get "one-time-link" logic.

| improve this answer | |

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.