Skip to main content

tw5-typed / utils/PasswordPrompt / PasswordPrompt

Class: PasswordPrompt

utils/PasswordPrompt.PasswordPrompt

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new PasswordPrompt(): PasswordPrompt

Creates a PasswordPrompt object

Returns

PasswordPrompt

Defined in

src/utils/PasswordPrompt.d.ts:23

Properties

passwordPrompts

passwordPrompts: PasswordPromptInfo[]

Store of pending password prompts

Defined in

src/utils/PasswordPrompt.d.ts:19


promptWrapper

promptWrapper: Element

Defined in

src/utils/PasswordPrompt.d.ts:21

Methods

createPrompt

createPrompt(options): PasswordPromptInfo

Adds a new password prompt. Options are:

Parameters

NameTypeDescription
optionsObjectOptions are: * submitText: text to use for submit button (defaults to "Login") * serviceName: text of the human readable service name * noUserName: set true to disable username prompt * canCancel: set true to enable a cancel button (callback called with null) * repeatPassword: set true to prompt for the password twice * callback: function to be called on submission with parameter of object {username,password}. Callback must return true to remove the password prompt
options.callbackPasswordPromptInfoCallback-
options.canCancelboolean-
options.noUserNameboolean-
options.repeatPasswordboolean-
options.serviceNamestring-
options.submitTextstring-

Returns

PasswordPromptInfo

Memberof

PasswordPrompt

Defined in

src/utils/PasswordPrompt.d.ts:45


removePrompt

removePrompt(promptInfo): void

Parameters

NameType
promptInfoPasswordPromptInfo

Returns

void

Defined in

src/utils/PasswordPrompt.d.ts:53


setWrapperDisplay

setWrapperDisplay(): void

Hides or shows the wrapper depending on whether there are any outstanding prompts

Returns

void

Defined in

src/utils/PasswordPrompt.d.ts:25