Go back to allowing automatic guest sessions by default. WebSockets actually make this work better.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3204 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2016-04-14 23:37:23 +00:00
parent 1a90ded630
commit 105ecab472
2 changed files with 4 additions and 5 deletions

View File

@ -288,10 +288,9 @@ function updateLogin() {
} else {
a.setAttribute("href", "/login/logout?return=" + encodeURIComponent(url() + hash()));
}
} else if (window.location.href.indexOf("?guest=1") != -1) {
window.location.href = "/login?submit=Proceed+as+Guest&return=" + encodeURIComponent(url() + hash());
} else {
window.location.href = "/login?return=" + encodeURIComponent(url() + hash());
a.appendChild(document.createTextNode("login"));
a.setAttribute("href", "/login?return=" + encodeURIComponent(url() + hash()));
}
login.appendChild(a);
}

View File

@ -332,9 +332,9 @@ function handleConnection(client) {
}
function finish() {
var requestObject = new Request(request[0], request[1], request[2], headers, body, client);
var response = new Response(requestObject, client);
try {
var requestObject = new Request(request[0], request[1], request[2], headers, body, client);
var response = new Response(requestObject, client);
handleRequest(requestObject, response)
if (client.isConnected) {
reset();