From d25a5d529f1852a924e923fc3082101cc4df8ca7 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Sat, 6 Jan 2018 00:24:59 -0500 Subject: [PATCH] Fix issue with making admins & verification --- CTFd/themes/admin/templates/teams.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/CTFd/themes/admin/templates/teams.html b/CTFd/themes/admin/templates/teams.html index 296face4..a0ad69ae 100644 --- a/CTFd/themes/admin/templates/teams.html +++ b/CTFd/themes/admin/templates/teams.html @@ -271,7 +271,6 @@ $(document).ready(function () { var elem = $(this).parent().parent().parent(); var id = elem.find('.team-id').text().trim(); var admin = $(this).prop('checked'); - var nonce = $('#nonce').val(); console.log(admin); $.post('{{ request.script_root }}/admin/team/' + id, {'admin': admin, 'nonce': nonce}); @@ -281,7 +280,6 @@ $(document).ready(function () { var elem = $(this).parent().parent().parent(); var id = elem.find('.team-id').text().trim(); var verified = $(this).prop('checked'); - var nonce = $('#nonce').val(); console.log(verified); $.post('{{ request.script_root }}/admin/team/' + id, {'verified': verified, 'nonce': nonce});