Added CrossDomain logging to console
This commit is contained in:
parent
e17aed8297
commit
c94b736062
@ -49,15 +49,17 @@ $(document).ready(function(){
|
|||||||
token: data.SecureToken
|
token: data.SecureToken
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
}).done(function() {
|
}).done(function(data, textStatus) {
|
||||||
NProgress.inc(1 / XHR.length);
|
NProgress.inc(1 / XHR.length);
|
||||||
}).fail(function() {
|
console.log('CrossDomain login step [' + data + ':' + textStatus + ']');
|
||||||
|
}).fail(function(_jqXHR, textStatus, errorThrown) {
|
||||||
|
console.log('CrossDomain login failed for at least one domain [' + textStatus + ':' + errorThrown + ']');
|
||||||
// Should check why this failed (timeout or bad request?), and if this is the origin domain, take action
|
// Should check why this failed (timeout or bad request?), and if this is the origin domain, take action
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
$.when.apply($, XHR).then(function(){
|
$.when.apply($, XHR).then(function(){
|
||||||
$.each(arguments, function(_index, _arg) {
|
$.each(arguments, function(_index, _arg) {
|
||||||
// Finished cross-domain logins (either succesfully or through timeout)
|
// Finished cross-domain logins (either successfully or through timeout)
|
||||||
NProgress.done();
|
NProgress.done();
|
||||||
window.location.replace(data.Location);
|
window.location.replace(data.Location);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user