From 7174cec323a76123e86a9502f044c4690356e25d Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 8 Jul 2016 01:15:18 -0500 Subject: [PATCH] Force all visible fields to be re-validated This fixes https://github.com/meteor-useraccounts/core/issues/695. Before, fields that previously passed validation didn't have to be re-validated, even if their contents changed, because their `state` would be set to `false` instead of `null`. --- lib/templates_helpers/at_pwd_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templates_helpers/at_pwd_form.js b/lib/templates_helpers/at_pwd_form.js index 2f8d53c..89fd9fa 100644 --- a/lib/templates_helpers/at_pwd_form.js +++ b/lib/templates_helpers/at_pwd_form.js @@ -62,7 +62,7 @@ AT.prototype.atPwdFormEvents = { } // Validates the field value only if current state is not "signIn" - if (preValidation && field.getStatus() !== false){ + if (preValidation){ var validationErr = field.validate(value, "strict"); if (validationErr) { if (field.negativeValidation)