mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-26 09:19:38 +00:00
feat: allow skip of success page for native apps (#5627)
add possibility to return to callback directly after login without rendering the successful login page
This commit is contained in:
@@ -5,13 +5,6 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
function autoSubmit() {
|
||||
let form = document.getElementsByTagName('form')[0];
|
||||
if (form) {
|
||||
let button = document.getElementById("redirect-button");
|
||||
if (button) {
|
||||
button.addEventListener("click", function (event) {
|
||||
location.reload();
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
form.submit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user