mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-05 22:02:15 +00:00
fix(login): mfa prompt UI improvements, fix register field validation, email validation (#4672)
* 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]>
This commit is contained in:
co-authored by
Silvan
Livio Spring
parent
7db87f4646
commit
2a8dfab192
@@ -0,0 +1,20 @@
|
||||
validate();
|
||||
|
||||
document.querySelectorAll('input[name="provider"]').forEach((input) => {
|
||||
input.addEventListener("change", validate);
|
||||
});
|
||||
|
||||
function validate() {
|
||||
const checkedMfaMethod = document.querySelector(
|
||||
'input[name="provider"]:checked'
|
||||
);
|
||||
const submitButton = document.querySelector(
|
||||
'button.lgn-raised-button[type="submit"]'
|
||||
);
|
||||
|
||||
if (checkedMfaMethod && submitButton) {
|
||||
submitButton.disabled = false;
|
||||
} else if (submitButton) {
|
||||
submitButton.disabled = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user