MantisBT: master-1.2.x 0777b3bd

Author Committer Branch Timestamp Parent
dregad dregad master-1.2.x 2012-06-06 03:45 master-1.2.x 1d75494a
Affected Issues  0014260: Unable to reset administrator passwords. APPLICATION ERROR #1901.
Changeset

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 0014260

mod - manage_user_edit_page.php Diff File