mirror of
https://github.com/zitadel/zitadel.git
synced 2025-05-08 04:27:25 +00:00

add possibility to return to callback directly after login without rendering the successful login page
11 lines
211 B
JavaScript
11 lines
211 B
JavaScript
document.addEventListener('DOMContentLoaded', function () {
|
|
autoSubmit();
|
|
});
|
|
|
|
function autoSubmit() {
|
|
let form = document.getElementsByTagName('form')[0];
|
|
if (form) {
|
|
form.submit();
|
|
}
|
|
}
|