mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
no csrf for js create validate index
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
parent
3ccb4ace37
commit
bb03385a28
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue