Fix for JWT assignment 1 log in now works again.

Reset button only triggers reset when admin is set to true in the token
This commit is contained in:
Nanne Baars
2018-05-29 11:20:40 +02:00
parent 5f4889cefe
commit 589872ad47
3 changed files with 10 additions and 10 deletions

View File

@ -1,8 +1,8 @@
$(document).ready(function () {
login('Guest');
loginVotes('Guest');
})
function login(user) {
function loginVotes(user) {
$("#name").text(user);
$.ajax({
url: 'JWT/votings/login?user=' + user,