Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent admin locking themselves out when resetting own password
Prior to this, when an admin attempted to reset their own password from manage_user_edit_page.php (with $g_send_reset_password = ON), they were no longer able to login because the sent confirmation hash was not valid anymore since the last_visit timestamp used to generate it is updated by every successful loading of the page (footer). This commit prevents such behavior by hiding the "Reset Password" button for the current user in the manage user page. One's own password should be changed in account_page.php (My Account). Fixes #14260
- Loading branch information