mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 14:45:07 +03:00
Migrated to REST backend RIVM-31
This commit is contained in:
parent
609ba1a3cd
commit
d68d3db702
9 changed files with 237 additions and 313 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue