Fix content-type for login (gives error in console of browser)

This commit is contained in:
Nanne Baars
2018-05-21 19:04:53 +02:00
parent fd96ba18f1
commit 4a8fdcf887
2 changed files with 6 additions and 2 deletions

View File

@ -5,8 +5,9 @@ $(document).ready(function () {
function login(user) {
$("#name").text(user);
$.ajax({
url: 'JWT/votings/login?user=' + user
}).then(function () {
url: 'JWT/votings/login?user=' + user,
contentType: "application/json"
}).always(function () {
getVotings();
})
}