Skip to content

Commit 462c199

Browse files
committed
Update error handling to only disable input when policy version is unsupported
1 parent c6b276d commit 462c199

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/auth/demo/src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,9 @@ function onValidatePassword() {
568568
},
569569
error => {
570570
// Disable the password input and hide the requirements since validation cannot be performed.
571-
$('#password-validation-password').prop('disabled', true);
571+
if (error.code === `auth/unsupported-password-policy-schema-version`) {
572+
$('#password-validation-password').prop('disabled', true);
573+
}
572574
$('#password-validation-requirements').hide();
573575
onAuthError(error);
574576
}

0 commit comments

Comments
 (0)