no csrf for js create validate index
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
Kyle Drake 2025-04-15 15:38:33 -05:00
parent 3ccb4ace37
commit bb03385a28

View file

@ -30,7 +30,7 @@
}) })
$('input[type=text],input[type=password],input[type=email]').on('change focusout', function(obj) { $('input[type=text],input[type=password],input[type=email]').on('change focusout', function(obj) {
$.post('/create_validate', {field: obj.target.name, value: obj.target.value, is_education: $('input[name=is_education]')[0].value, csrf_token: '<%= csrf_token %>'}, function(res) { $.post('/create_validate', {field: obj.target.name, value: obj.target.value, is_education: $('input[name=is_education]')[0].value}, function(res) {
if(res.result == 'ok') { if(res.result == 'ok') {
return $(obj.target).tooltip('hide') return $(obj.target).tooltip('hide')
} }