mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
add back csrf token for index validation
This commit is contained in:
parent
c4487af180
commit
b50d93f030
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) {
|
||||
$.post('/create_validate', {field: obj.target.name, value: obj.target.value, is_education: $('input[name=is_education]')[0].value, csrf_token: 'CSRF_TOKEN_HERE'}, function(res) {
|
||||
$.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) {
|
||||
if(res.result == 'ok') {
|
||||
return $(obj.target).tooltip('hide')
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue