Closed (fixed)
Project:
Doorman
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2014 at 10:33 UTC
Updated:
22 Jun 2016 at 06:54 UTC
Jump to comment: Most recent
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
Comment #1
ribakker commentedComment #3
manarth commentedThanks for the patch ribakker, apologies for the time taken to commit it!