mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-28 01:52:16 +00:00
* fix: mfa prompt styling * register password field validation * loginname overflow, mfa hover effect * cleanup * Update internal/api/ui/login/static/resources/scripts/password_policy_check.js Co-authored-by: Silvan <[email protected]> * prettier if check * cleanup * Update internal/api/ui/login/static/resources/scripts/password_policy_check.js Co-authored-by: Livio Spring <[email protected]> * fix confirmation validation, cleanup * rm log * email type validation * add email validation * change pattern * pattern * comment RFC 2822 * dont wrapp org name * rm email validation Co-authored-by: Silvan <[email protected]> Co-authored-by: Livio Spring <[email protected]>
16 lines
490 B
JavaScript
16 lines
490 B
JavaScript
function CheckRegisterPwPolicy() {
|
|
const pwNew = document.getElementById("register-password");
|
|
const pwNewConfirmation = document.getElementById(
|
|
"register-password-confirmation"
|
|
);
|
|
const pwNewValue = pwNew.value;
|
|
const pwNewConfirmationValue = pwNewConfirmation.value;
|
|
|
|
ComplexityPolicyCheck(pwNew, pwNewConfirmation);
|
|
|
|
return pwNewValue == pwNewConfirmationValue;
|
|
}
|
|
|
|
let button = document.getElementById("register-button");
|
|
disableSubmit(CheckRegisterPwPolicy, button);
|