mirror of
https://github.com/zitadel/zitadel.git
synced 2025-06-04 17:28:20 +00:00

* fix:add hint for password-confirmation * Update internal/ui/login/static/i18n/de.yaml Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com> Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
18 lines
616 B
JavaScript
18 lines
616 B
JavaScript
function CheckRegisterPwPolicy() {
|
|
let policyElement = document.getElementById("register-password");
|
|
let pwNew = policyElement.value;
|
|
let pwNewConfirmation = document.getElementById("register-password-confirmation").value;
|
|
|
|
if (ComplexityPolicyCheck(policyElement, pwNew, pwNewConfirmation) === false) {
|
|
policyElement.setAttribute("color", "warn");
|
|
return false;
|
|
} else {
|
|
policyElement.setAttribute("color", "primary");
|
|
}
|
|
|
|
return pwNew == pwNewConfirmation;
|
|
}
|
|
|
|
let button = document.getElementById("register-button");
|
|
disableSubmit(CheckRegisterPwPolicy, button);
|