mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-19 08:39:34 +00:00
change barcode scan form to use requestSubmit() to fix CSRF token not being generated on submission (#1191)
This commit is contained in:
parent
86f53b2956
commit
131023da67
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
|
||||
document.getElementById('scan_dialog_input').value = decodedText;
|
||||
//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