mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-16 08:09:07 +00:00
Implemented guest BLOCK and ALLOW options #25
This commit is contained in:
@@ -9,6 +9,8 @@ keyStore_password=
|
||||
#Server
|
||||
mar_address=ws://localhost:4567/socket
|
||||
server_name=MAR dev
|
||||
# ALLOW | TEMPORARY | BLOCK
|
||||
guest_policy=ALLOW
|
||||
|
||||
#Database
|
||||
mongo_dbname=mar_beta
|
||||
|
||||
9
Server/src/main/resources/static/js/mar.js
vendored
9
Server/src/main/resources/static/js/mar.js
vendored
@@ -555,8 +555,9 @@ var AuthListener = (function () {
|
||||
console.log("[MAR] Auth successful");
|
||||
}
|
||||
mar.client.requestUserInfo();
|
||||
}
|
||||
else {
|
||||
} else if (message.m == "forbidden") {
|
||||
alert("Authentication failed. Guest accounts are blocked on this server");
|
||||
} else {
|
||||
alert("Authentication failed. Please make sure you are logged in and reload the page.");
|
||||
}
|
||||
};
|
||||
@@ -712,7 +713,9 @@ var GameClient = (function () {
|
||||
if (DEBUG) {
|
||||
console.log("[MAR] Received server info " + xhr.responseText);
|
||||
}
|
||||
setTimeout(self.connectToGameServer(JSON.parse(xhr.responseText)), 100);
|
||||
setTimeout(function () {
|
||||
return self.connectToGameServer(JSON.parse(xhr.responseText));
|
||||
}, 100);
|
||||
}
|
||||
};
|
||||
xhr.send(null);
|
||||
|
||||
Reference in New Issue
Block a user