Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
a69c1042
Commit
a69c1042
authored
Dec 14, 2014
by
Leigh B Stoller
Browse files
Add check to ensure user is active.
parent
2ae2a648
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/server-ajax.php
View file @
a69c1042
...
@@ -141,6 +141,11 @@ function CheckLoginForAjax($guestokay = false)
...
@@ -141,6 +141,11 @@ function CheckLoginForAjax($guestokay = false)
SPITAJAX_ERROR
(
2
,
"Your account has not been approved yet"
);
SPITAJAX_ERROR
(
2
,
"Your account has not been approved yet"
);
exit
(
2
);
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.
# Logged in user always okay.
if
(
isset
(
$this_user
))
{
if
(
isset
(
$this_user
))
{
if
(
$check_status
&
CHECKLOGIN_MAYBEVALID
)
{
if
(
$check_status
&
CHECKLOGIN_MAYBEVALID
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment