Commit 4e10fc00 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Admins can change email, no verification required.

parent 6cfdeddc
......@@ -167,7 +167,7 @@ function CheckForm()
# we go any further. We use a session variable to store the
# key we send to the user in email.
#
if ($formfields["email"] != $target_user->email()) {
if ($formfields["email"] != $target_user->email() && !ISADMIN()) {
if (!isset($_SESSION["verify_key"])) {
$_SESSION["verify_key"] = substr(GENHASH(), 0, 16);
$_SESSION["verified"] = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment