mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-22 12:31:33 +00:00

* fix: dont (re)generate client secret with auth type none * fix(cors): allow Origin from request * feat: add origin allow list and fix some core issues * rename migration * fix UserIDsByDomain * feat: send email to users after domain claim * username * check origin on userinfo * update oidc pkg * fix: add migration 1.6 * change username * change username * remove unique email aggregate * change username in mgmt * search global user by login name * fix test * change user search in angular * fix tests * merge * userview in angular * fix merge * Update pkg/grpc/management/proto/management.proto Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com> * Update internal/notification/static/i18n/de.yaml Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com> * fix Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
29 lines
858 B
JavaScript
29 lines
858 B
JavaScript
function disableSubmit(checks, button) {
|
|
let form = document.getElementsByTagName('form')[0];
|
|
let inputs = form.getElementsByTagName('input');
|
|
for (i = 0; i < inputs.length; i++) {
|
|
button.disabled = true;
|
|
inputs[i].addEventListener('input', function () {
|
|
if (checks != undefined) {
|
|
if (checks() === false) {
|
|
button.disabled = true;
|
|
return
|
|
}
|
|
}
|
|
if (checkRequired(form, inputs) === false) {
|
|
button.disabled = true;
|
|
return
|
|
}
|
|
button.disabled = false;
|
|
});
|
|
}
|
|
}
|
|
|
|
function checkRequired(form, inputs) {
|
|
for (i = 0; i < inputs.length; i++) {
|
|
if (inputs[i].required && inputs[i].value == '') {
|
|
return false
|
|
}
|
|
}
|
|
return true;
|
|
} |