Opened 22 months ago
Closed 19 months ago
#57164 closed defect (bug) (fixed)
Email change confirmation link incorrect for MU user with no roles
Reported by: | roytanck | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 6.2 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Users | Keywords: | has-patch commit |
Focuses: | administration, multisite | Cc: |
Description (last modified by )
The link in an email change confirmation email for users with no roles in a multisite install is incorrect, causing them to be unable to change their email address.
This appears to be a regression. The same issue was fixed in [38876] , but [41163] appears to have undone that fix.
Steps to reproduce:
- Create a new (subdirectory) multisite install.
- In the network admin, create a new user.
- Do not assign any roles to this user.
- Login as the new user, and attempt to change their email address.
- When clicking the link in the confirmation email, an error will appear.
As described in #38451, adding /user
in the URL will fix the issue. It appears that self_admin_url()
does this.
Attachments (1)
Change History (12)
#1
@
22 months ago
- Component changed from General to Users
- Description modified (diff)
- Keywords needs-patch added
- Version set to 4.9
@
22 months ago
Use self_admin_url instead of admin_url when constructing the email confirmation URL.
#3
@
22 months ago
- Keywords has-patch added; needs-patch removed
Added a patch that simply replaces admin_url
with self_admin_url
to restore the previous fix. This fixes the issue for me, but some regression testing is probably warranted.
#4
@
20 months ago
While trying to reproduce the issue;
unable to create a new multi-site user.
SS:https://d.pr/i/G3Jkqk
This ticket was mentioned in Slack in #core by costdev. View the logs.
19 months ago
#7
@
19 months ago
- Keywords commit added
57164.diff fixes the issue as expected, but this is temporarily blocked by #38460 (the bug noted by @afrin29 above) which should be fixed first.
Thanks for the report