mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-20 17:19:34 +00:00
change barcode scan form to use requestSubmit() to fix CSRF token not being generated on submission
This commit is contained in:
parent
0a8199d81f
commit
f5c47ef5c7
1 changed files with 2 additions and 2 deletions
|
|
@ -70,6 +70,6 @@ export default class extends Controller {
|
||||||
//Put our decoded Text into the input box
|
//Put our decoded Text into the input box
|
||||||
document.getElementById('scan_dialog_input').value = decodedText;
|
document.getElementById('scan_dialog_input').value = decodedText;
|
||||||
//Submit form
|
//Submit form
|
||||||
document.getElementById('scan_dialog_form').submit();
|
document.getElementById('scan_dialog_form').requestSubmit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue