Commit a69c1042 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add check to ensure user is active.

parent 2ae2a648
......@@ -141,6 +141,11 @@ function CheckLoginForAjax($guestokay = false)
SPITAJAX_ERROR(2, "Your account has not been approved yet");
# Known user, but not active.
if (! ($check_status & CHECKLOGIN_ACTIVE)) {
SPITAJAX_ERROR(2, "Your account is no longer active");
# Logged in user always okay.
if (isset($this_user)) {
if ($check_status & CHECKLOGIN_MAYBEVALID) {
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