Migrated to REST backend RIVM-31

This commit is contained in:
Mihail Slobodyanuk 2022-12-16 11:43:46 +02:00
parent 609ba1a3cd
commit d68d3db702
9 changed files with 237 additions and 313 deletions

View file

@ -13,7 +13,7 @@ var ed = {
var d = new Date();
d.setTime(d.getTime() + (10 * 60 * 1000));
document.cookie = "access_key=" + btoa( "user=" + encodeURIComponent($('#nasInputUser').val()) + ";pwd=" + encodeURIComponent($('#nasInputPassword').val()))+ "; expires=" + d.toUTCString() + "; path=/";
$.ajax({url: "api/getself"}).done(function () {
$.ajax({url: "api/self"}).done(function () {
window.location.reload();
}).fail(function () {
ed.nasLogoutCall();