[auth0-lock] add Auth0LockConstructorOptions.allowAutocomplete (#29486)

* add Auth0LockConstructorOptions.allowAutocomplete

* allowPasswordAutocomplete, flashMessage, scrollGlobalMessagesIntoView

* update tests
This commit is contained in:
James Ah Yong
2018-10-08 13:11:25 -04:00
committed by Andy
parent ba0690aad3
commit 71a3debca4
2 changed files with 9 additions and 0 deletions

View File

@@ -140,12 +140,17 @@ new Auth0Lock(CLIENT_ID, DOMAIN, otherOptions);
const multiVariantOptions : Auth0LockConstructorOptions = {
container: "myContainer",
closable: false,
language: "en",
languageDictionary: {
signUpTerms: "I agree to the <a href='/terms' target='_new'>terms of service</a> ...",
title: "My Company",
},
autoclose: true,
autofocus: false,
allowAutocomplete: false,
scrollGlobalMessagesIntoView: false,
allowShowPassword: true,
allowPasswordAutocomplete: false,
};
new Auth0Lock(CLIENT_ID, DOMAIN, multiVariantOptions);

View File

@@ -113,8 +113,10 @@ interface Auth0LockPopupOptions {
interface Auth0LockConstructorOptions {
additionalSignUpFields?: Auth0LockAdditionalSignUpField[];
allowedConnections?: string[];
allowAutocomplete?: boolean;
allowForgotPassword?: boolean;
allowLogin?: boolean;
allowPasswordAutocomplete?: boolean;
allowSignUp?: boolean;
allowShowPassword?: boolean;
assetsUrl?: string;
@@ -129,6 +131,7 @@ interface Auth0LockConstructorOptions {
defaultADUsernameFromEmailPrefix?: string;
defaultDatabaseConnection?: string;
defaultEnterpriseConnection?: string;
flashMessage?: Auth0LockFlashMessageOptions;
forgotPasswordLink?: string;
hashCleanup?: boolean;
initialScreen?: "login" | "signUp" | "forgotPassword";
@@ -142,6 +145,7 @@ interface Auth0LockConstructorOptions {
popupOptions?: Auth0LockPopupOptions;
prefill?: { email?: string, username?: string};
rememberLastLogin?: boolean;
scrollGlobalMessagesIntoView?: boolean;
signupLink?: string;
socialButtonStyle?: "big" | "small";
theme?: Auth0LockThemeOptions;