Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signUpFieldsStrictValidation option #9450

Merged
merged 1 commit into from
Sep 22, 2020
Merged
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
11 changes: 11 additions & 0 deletions articles/libraries/lock/v11/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Authentication options are grouped in the `auth` property of the `options` objec
| [prefill](#prefill-object-) | Prefill values for email/username fields |
| [signUpLink](#signuplink-string-) | Set a custom url to fire when clicking "sign up" |
| [usernameStyle](#usernamestyle-string-) | Limit username field to accept only "username" values or only "email" values |
| [signUpFieldsStrictValidation](#signUpFieldsStrictValidation-boolean-) | Strict format validation for username and email fields at signup |

## Enterprise

Expand Down Expand Up @@ -878,6 +879,16 @@ var options = {
};
```

### signUpFieldsStrictValidation {Boolean}

This option enables strict format validation for username and email fields at the signup screen. This ensures presenting validation errors instead of the generic "We're sorry, something went wrong when attempting to sign up." message. Defaults to `false`.

```js
var options = {
signUpFieldsStrictValidation: true
};
```

## Enterprise Options

### defaultEnterpriseConnection {String}
Expand Down