Use case: As user support, I first set Force Password Change on a user, then I masquerade as that user. While masquerading, I expect to be able to use the site just like this user but instead I am taken to the Force Password Change screen ("An administrator has required that you change your password. Please change your password to proceed.").
Are there cases when a given user has masquerade permission but should also be forced to change that masquerading-as user's password?
(I saw #2839202: Support the masquerade module, but this is different)
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2870496-4-forced_password_change_should_not.patch | 598 bytes | texas-bronius |
Comments
Comment #2
texas-bronius commentedThe check masquerade module does is against
$_SESSION['masquerading'])). Is it too simplistic to add that check like:In this way, at least my use case as described works (masquerading user can use the site as if there were no pending password change forced), and when not masquerading but actually logging in as that user, I am still prompted and forced to change password.
Thoughts?
Comment #3
texas-bronius commentedComment #4
texas-bronius commentedHere is a patch against 7.x-2.2 equivalent to #2 above.
Comment #6
jaypanThanks Bronius. I've added it to dev, and it will be part of the next release.