2020-07-16 14:26:08 +02:00
|
|
|
function CheckRegisterPwPolicy() {
|
2022-11-17 13:25:09 +01:00
|
|
|
const pwNew = document.getElementById("register-password");
|
|
|
|
const pwNewConfirmation = document.getElementById(
|
|
|
|
"register-password-confirmation"
|
|
|
|
);
|
|
|
|
const pwNewValue = pwNew.value;
|
|
|
|
const pwNewConfirmationValue = pwNewConfirmation.value;
|
2020-07-16 14:26:08 +02:00
|
|
|
|
2022-11-17 13:25:09 +01:00
|
|
|
ComplexityPolicyCheck(pwNew, pwNewConfirmation);
|
2020-07-16 14:26:08 +02:00
|
|
|
|
2022-11-17 13:25:09 +01:00
|
|
|
return pwNewValue == pwNewConfirmationValue;
|
2020-07-16 14:26:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
let button = document.getElementById("register-button");
|
|
|
|
disableSubmit(CheckRegisterPwPolicy, button);
|