Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be a great addition to the 403 login form, that the user could ask for their password.
Comment | File | Size | Author |
---|---|---|---|
#5 | logintoboggan-403passwordlink-1823764-5.patch | 3.41 KB | m.stenta |
#4 | logintoboggan-403passwordlink-1823764-4.patch | 3.05 KB | m.stenta |
#1 | LoginTobogganSettingsWithPatch.jpg | 39.31 KB | littledynamo |
#1 | logintoboggan-403passwordlink-1823764-1.patch | 5.77 KB | littledynamo |
Comments
Comment #1
littledynamo CreditAttribution: littledynamo commentedI needed this functionality also, so have created a patch. The 403 login form pulls from user_login function, which doesn't include the forgot password or create user links (haven't managed to figure out why. The tabs display ok in /user but not during a 403, if anybody has any insight into this then please let me know!). The patch creates an option in the settings page which allows you to include or exclude the forgot password links. If forgot password link option is selected then the code will pull the login form from user_login_block function as oppose to user_login.
Here is an image of the settings (the checkbox is disabled if 'Present login form on access denied (403) is disabled) :
Here is the patch:
logintoboggan-403passwordlink-1823764-1.patch
This is tested and working on Drupal 7.21
Comment #2
littledynamo CreditAttribution: littledynamo commentedI created this patch against 7.x-1.3 because the version control page didn't have an option for 7.x-1.x-dev release. The release page also mentioned that the dev release tracks 7.x-1.3
Comment #3
sjpagan CreditAttribution: sjpagan commentedHi , i applied your patch, i see the option but in front end i don't see the tab. how can i resolve it ?
Comment #4
m.stentaThanks @littledynamo for the original patch! Just what I needed.
I cleaned it up a bit and rerolled it against the latest 7.x-1.x branch. Please review.
Comment #5
m.stentaOne more small update: delete the new variable in hook_uninstall().
On a related note, I just posted this issue: #2619962: Update hook_uninstall()
Comment #6
forestmars CreditAttribution: forestmars commentedComment #7
stevecowie CreditAttribution: stevecowie as a volunteer commentedI can't reproduce the problem. Current behaviour with the standard login form is to show tabs for request password and register (see attached screenshot). If the unified form is used there is a link in the form (see second screenshot). I think what's happened is that a separate issue that provides for redirection of user on 403 to the standard login page fixes this. Will mark as postponed in case I haven't understood this properly.
Comment #8
m.stenta@stevecowie: this is only true if the visitor is on the
/user*
path.But LoginToboggan also has an option for showing the login form on any 403 page. The tabs do not show in that case. As @littledynamo said in #1: