I'm looking for a way to modify an event (from my own module) when an user navigates to the account activation URL that they get in their mails. Are there any such hooks ready for me to use?
Also I would potentially need the $account-> mail
variable if it's passed as an argument by any chance.
I've used this but it doesn't work as intended -
function my_module_form_alter(&$form, &$form_state, $form_id)
{
// Trigger when at password reset form
if ($form_id == 'user_pass_reset') {}
}
But the problem is I cannot seem to access the $account
variable that way. What should I do?