User registers, gets email with link to set password. If I create a redirect action and a trigger for "Trigger: After a user has logged in" then when they click that link, they get redirected before setting their password. How do I use this redirect only after they've completed registration by putting in the password? I found many similar posts but no simple solution. I tried the Login Destination module and it didn't work. I'm on Drupal 7.31


ratanphp’s picture

You can use simple hook_form_alter to achive this requirement. Whenever click on link then yuo get a query string valriable pass-reset-token on your site. So in hook_form_alter (form_id : user_profile_form) you can set $form_state['redirect'] = url('your url').