mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
* Drag-and-drop: Force csrf_token to be present * Rough design * Missing file * b.visble * Forms * Docs * Tests * Fix variable
This commit is contained in:
3
src/pretix/static/pretixcontrol/js/ui/focus.js
Normal file
3
src/pretix/static/pretixcontrol/js/ui/focus.js
Normal file
@@ -0,0 +1,3 @@
|
||||
$(function () {
|
||||
$("input, select, textarea").not(":disabled").focus();
|
||||
});
|
||||
@@ -163,6 +163,7 @@ const startLogin = async (e) => {
|
||||
const transformedAssertionForServer = transformAssertionForServer(assertion);
|
||||
|
||||
// post the assertion to the server for verification.
|
||||
$("input, select, textarea").prop("required", false);
|
||||
$("#webauthn-response, #id_password").val(JSON.stringify(transformedAssertionForServer));
|
||||
$("#webauthn-form").submit();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user