Speed up login by removing redundant credential checks.

This commit is contained in:
Skylar Ittner 2016-11-08 02:52:37 -07:00
parent beca9dfa96
commit 9ab1fe4bf8

View File

@ -110,19 +110,7 @@
if (userset && passset && localStorage.getItem("no_autologin") !== "true") {
// Try to login with stored credentials
$.post("https://sso.netsyms.com/api/simpleauth.php",
{user: localStorage.getItem("username"), pass: localStorage.getItem("password")},
function (data) {
if (data === 'OK') {
dologin();
} else {
$('#loading').css('display', 'none');
updateStatusBarColor();
}
}).fail(function () {
$('#loading').css('display', 'none');
updateStatusBarColor();
});
dologin();
} else {
$('#loading').css('display', 'none');
// Remove autologin block