mirror of
https://github.com/neocities/neocities.git
synced 2026-05-26 15:18:35 +00:00
no csrf for js create validate index
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
})
|
||||
|
||||
$('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') {
|
||||
return $(obj.target).tooltip('hide')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user