Commit 8ded96a0 authored by Leigh Stoller's avatar Leigh Stoller

Improve "not yet approved" message.

parent 6f78c8c8
......@@ -51,7 +51,11 @@ $optargs = OptionalPageArguments("asguest", PAGEARG_BOOLEAN,
#
if ($this_user) {
if ($CHECKLOGIN_STATUS & CHECKLOGIN_UNAPPROVED) {
header("Location: $APTBASE/signup.php");
USERERROR("Your account has not been approved yet! ".
"<br>Please wait till ".
"your account is approved (you will receive email) and then ".
"reload this page.",
1, HTTP_403_FORBIDDEN);
}
elseif (Instance::UserHasInstances($this_user)) {
header("Location: $APTBASE/myexperiments.php");
......
......@@ -587,7 +587,10 @@ function CheckLoginConditions($status)
USERERROR("You have not verified your account yet!",
1, HTTP_403_FORBIDDEN);
if ($status & CHECKLOGIN_UNAPPROVED)
USERERROR("Your account has not been approved yet!",
USERERROR("Your account has not been approved yet! ".
"<br>Please wait till ".
"your account is approved (you will receive email) and then ".
"reload this page.",
1, HTTP_403_FORBIDDEN);
if (($status & CHECKLOGIN_WEBONLY) && ! ISADMIN())
USERERROR("Your account does not permit you to access this page!",
......
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