When a one time login link is generated (by sending a newly created user an e-mail or by using the "drush uli" command) this link doesn't work. This link is formatted like /user/reset/1/1395915652/IQGfMqFk4PTm5qSRnMKM3pGCKXLXNETTEFk5MoaKlLg/login But when visiting the link you are redirected to the login page.

I have fixed this by implementing hook_doorman_accessible_urls_alter as follows:

function mymodulename_doorman_accessible_urls_alter(&$pages) {
$pages .= "\nuser/reset/*/*/*/login";
$pages .= "\nuser/reset/*/*/*";
}

Perhaps this could be added by default to the doorman_path_is_allowed() function in a new release.

Comments

ribakker’s picture

Issue summary: View changes

  • manarth committed 36d38fa on 7.x-1.x authored by ribakker
    Issue #2227169 by ribakker: Fix for One time login link
    
manarth’s picture

Status: Active » Fixed

Thanks for the patch ribakker, apologies for the time taken to commit it!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.