Skip to content
Snippets Groups Projects
Commit c69f1661 authored by deuce's avatar deuce
Browse files

Do not allow the Guest user to login using login.ssjs (is auto-logged in

for message area).  Fix typo, new URI should be /index.ssjs, not
../index.ssjs
parent 896f42fe
No related branches found
No related tags found
No related merge requests found
if(user.number==0) {
if(user.number==0 || user.number==system.matchuser('Guest')) {
http_reply.status='401 Permission Denied';
http_reply.header["WWW-Authenticate"]='Basic realm="'+system.name+'"';
}
else {
// Note: A 302 here would mean the index would be displayed as "/login.ssjs"
// That is to say, it would display the indes AS login.ssjs.
// That is to say, it would display the index AS login.ssjs.
// http_reply.status='302 Found';
http_reply.status='307 Temporary Redirect';
}
http_reply.header.location='../index.ssjs';
http_reply.header.location='/index.ssjs';
http_reply.header.pragma='no-cache';
http_reply.header.expires='0';
http_reply.header['cache-control']='must-revalidate';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment