Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ AccountsTemplates.configure({
showResendVerificationEmailLink: false,

// Client-side Validation
signInPreValidation: false,
continuousValidation: false,
negativeFeedback: false,
negativeValidation: true,
Expand Down Expand Up @@ -268,6 +269,7 @@ Details for each of them follow.
| **Texts** | | | |
| texts | Object | | Permits to specify texts to be shown on the atForm for each of its states (see [below](#configuring-texts)). |
| **Client-side Validation** | | | |
| signInPreValidation | Boolean | false | Specifies whether to pre validation in client side when state is `signIn`.|
| continuousValidation | Boolean | false | Specifies whether to continuously validate fields' value while the user is typing. *It is performed client-side only to save round trips with the server*. |
| negativeValidation | Boolean | false | Specifies whether to highlight input elements in case of negative validation. |
| positiveValidation | Boolean | false | Specifies whether to highlight input elements in case of positive validation. |
Expand Down
2 changes: 1 addition & 1 deletion lib/templates_helpers/at_pwd_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ AT.prototype.atPwdFormEvents = {

var parentData = Template.currentData();
var state = (parentData && parentData.state) || AccountsTemplates.getState();
var preValidation = (state !== "signIn");
var preValidation = AccountsTemplates.options.signInPreValidation || (state !== "signIn");

// Client-side pre-validation
// Validates fields values
Expand Down