Commit 805bd80b authored by Leigh B Stoller's avatar Leigh B Stoller

Fix to previous revision.

parent d28fd693
......@@ -138,22 +138,22 @@ function CheckLoginForAjax($guestokay = false)
SPITAJAX_ERROR(2, "Your login has timed out");
exit(2);
}
# Known user, but not approved.
if ($check_status & CHECKLOGIN_UNAPPROVED) {
SPITAJAX_ERROR(2, "Your account has not been approved yet");
exit(2);
}
# Known user, but not active.
if (! ($check_status & CHECKLOGIN_ACTIVE)) {
SPITAJAX_ERROR(2, "Your account is no longer active");
exit(2);
}
# Logged in user always okay.
if (isset($this_user)) {
if ($check_status & CHECKLOGIN_MAYBEVALID) {
SPITAJAX_ERROR(2, "Your login cannot be verified. Cookie problem?");
exit(2);
}
# Known user, but not approved.
if ($check_status & CHECKLOGIN_UNAPPROVED) {
SPITAJAX_ERROR(2, "Your account has not been approved yet");
exit(2);
}
# Known user, but not active.
if (! ($check_status & CHECKLOGIN_ACTIVE)) {
SPITAJAX_ERROR(2, "Your account is no longer active");
exit(2);
}
return;
}
if (!$guestokay) {
......
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