Speed up login by removing redundant credential checks.
This commit is contained in:
parent
beca9dfa96
commit
9ab1fe4bf8
@ -110,19 +110,7 @@
|
|||||||
|
|
||||||
if (userset && passset && localStorage.getItem("no_autologin") !== "true") {
|
if (userset && passset && localStorage.getItem("no_autologin") !== "true") {
|
||||||
// Try to login with stored credentials
|
// Try to login with stored credentials
|
||||||
$.post("https://sso.netsyms.com/api/simpleauth.php",
|
dologin();
|
||||||
{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();
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
$('#loading').css('display', 'none');
|
$('#loading').css('display', 'none');
|
||||||
// Remove autologin block
|
// Remove autologin block
|
||||||
|
Reference in New Issue
Block a user