|
|
@ -27,11 +27,15 @@
|
|
|
|
url: RELATIVE_PATH + '/login',
|
|
|
|
url: RELATIVE_PATH + '/login',
|
|
|
|
data: loginData,
|
|
|
|
data: loginData,
|
|
|
|
success: function(data, textStatus, jqXHR) {
|
|
|
|
success: function(data, textStatus, jqXHR) {
|
|
|
|
$('#login-error-notify').hide();
|
|
|
|
if(!data.success) {
|
|
|
|
window.location.replace(RELATIVE_PATH + "/?loggedin");
|
|
|
|
$('#login-error-notify').html(data.message).show();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$('#login-error-notify').hide();
|
|
|
|
|
|
|
|
window.location.replace(RELATIVE_PATH + "/?loggedin");
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error : function(data, textStatus, jqXHR) {
|
|
|
|
error : function(data, textStatus, jqXHR) {
|
|
|
|
$('#login-error-notify').show().delay(1000).fadeOut(250);
|
|
|
|
$('#login-error-notify').show();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dataType: 'json',
|
|
|
|
dataType: 'json',
|
|
|
|
async: true,
|
|
|
|
async: true,
|
|
|
|