Commit 7420adb8 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Oops, do not allow geni users to set their password, they have to use the

trusted signer to log in.
parent ae3f37d8
......@@ -54,6 +54,7 @@ function (_, sup, myaccountString, verifyString, oopsString, waitwaitString)
formfields: formfields,
general_error: (errors.error || ''),
verify_modal: verify,
nopassword: window.APT_OPTIONS.nopassword,
}), errors);
$('#page-body').html(myaccount);
......
......@@ -76,7 +76,22 @@ $defaults["state"] = $target_user->state();
$defaults["country"] = $target_user->country();
$defaults["affiliation"] = $target_user->affil();
#
# See the comment in signup.php about "promoting" geni users to
# local users that can start projects. These users do not get a
# password change box, we do not want them coming in that way,
# they have to use the trusted signer. As noted in signup.php,
# we need a flag for this kind of user.
#
$nopassword = 0;
if (!$target_user->country() || $target_user->country() == "") {
$nopassword = 1;
}
SPITHEADER(1);
echo "<script>\n";
echo "window.APT_OPTIONS.nopassword = $nopassword;\n";
echo "</script>\n";
echo "<link rel='stylesheet' href='css/bootstrap-formhelpers.min.css'>\n";
echo "<div id='page-body'></div>\n";
echo "<div id='oops_div'></div>\n";
......
Markdown is supported
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