mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-13 12:32:14 +00:00
15 lines
475 B
JavaScript
15 lines
475 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) === false) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
return pwNew == pwNewConfirmation;
|
||
|
|
}
|
||
|
|
|
||
|
|
let button = document.getElementById("register-button");
|
||
|
|
disableSubmit(CheckRegisterPwPolicy, button);
|