From 653e5bd015d5ba1bbe3b86dee8ed1a5cabc20bac Mon Sep 17 00:00:00 2001 From: Saltuk Alakus Date: Tue, 22 Sep 2020 00:18:03 +0300 Subject: [PATCH] signUpFieldsStrictValidation option --- articles/libraries/lock/v11/configuration.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/articles/libraries/lock/v11/configuration.md b/articles/libraries/lock/v11/configuration.md index ae698bc729..d5c1e9492c 100644 --- a/articles/libraries/lock/v11/configuration.md +++ b/articles/libraries/lock/v11/configuration.md @@ -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 @@ -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}