Working lesson

This commit is contained in:
Nanne Baars
2018-05-21 13:19:26 +02:00
parent 9d7886d572
commit 60ef35e241
5 changed files with 10 additions and 11 deletions

View File

@ -3,8 +3,7 @@ function follow(user) {
type: 'POST',
url: 'JWT/final/follow/' + user
}).then(function (result) {
$("#toast").setTextContent(result);
$("#toast").append(result);
})
}
}

View File

@ -5,11 +5,10 @@ $(document).ready(function () {
function login(user) {
$("#name").text(user);
$.ajax({
url: "JWT/votings/login?user=" + user,
complete: function (result, status) {
getVotings();
}
});
url: 'JWT/votings/login?user=' + user
}).then(function () {
getVotings();
})
}
var html = '<a href="#" class="list-group-item ACTIVE">' +
@ -65,7 +64,7 @@ function getVotings() {
})
}
webgoat.customjs.jwtSigningCallback = function() {
webgoat.customjs.jwtSigningCallback = function () {
getVotings();
}