diff --git a/README.md b/README.md index dbbd5142d..f30298d35 100644 --- a/README.md +++ b/README.md @@ -346,6 +346,7 @@ var options = { - **prefill {Object}**: Allows you to set the initial value for the _email_ and/or _username_ inputs, e.g. `{prefill: {email: "someone@auth0.com", username: "someone"}}`. When omitted no initial value will be provided. - **signUpLink {String}**: URL for a page that allows the user to sign up. When set to a non-empty string, the user will be linked to the provided URL when clicking the _sign up_ tab in the _login screen_. - **usernameStyle {String}**: Determines what will be used to identify the user for a Database connection that has the `requires_username` flag set, otherwise it will be ignored. Possible values are `"username"` and `"email"` and by default both `username` and `email` are allowed. +- **signUpHideUsernameField {Boolean}**: When set to `true` hides the _username_ input during sign up for a Database connection that has the `requires_username` flag set. Defaults to `false`. #### Enterprise options diff --git a/src/__tests__/engine/classic/__snapshots__/sign_up_pane.test.jsx.snap b/src/__tests__/engine/classic/__snapshots__/sign_up_pane.test.jsx.snap index d584e570b..48acda30b 100644 --- a/src/__tests__/engine/classic/__snapshots__/sign_up_pane.test.jsx.snap +++ b/src/__tests__/engine/classic/__snapshots__/sign_up_pane.test.jsx.snap @@ -1,5 +1,22 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`SignUpPane onlyEmail is false hide UsernamePane when databaseConnectionRequiresUsername is true and signUpHideUsernameField is true 1`] = ` +
{headerText}
; const usernamePane = - !onlyEmail && databaseConnectionRequiresUsername(model) ? ( + !onlyEmail && databaseConnectionRequiresUsername(model) && !signUpHideUsernameField(model) ? (