Working lesson
This commit is contained in:
@ -3,8 +3,7 @@ function follow(user) {
|
||||
type: 'POST',
|
||||
url: 'JWT/final/follow/' + user
|
||||
}).then(function (result) {
|
||||
$("#toast").setTextContent(result);
|
||||
$("#toast").append(result);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user