@nospamproxy/core
    Preparing search index...

    Password control element. This control allows to create, update, verify and delete passwords using the OData service. It also provides validation for the password fields. It can be used inside a label-grid element

    <label-grid>
    <label-grid-label value="Mailbox address" unique-id.from-view="mailboxAddressId"></label-grid-label>
    <text-box labelled-by.bind="mailboxAddressId" value.two-way="mailboxAddress"></text-box>
    <password-control disable-controls.bind="isEnabled" password-id.two-way="clearingMailboxPasswordId"
    label-text="Archive password" password.two-way="clearingMailboxPassword"
    validation-controller.bind component.ref="passwordControl"></password-control>
    <label-grid>
    Index

    Constructors

    Properties

    confirmPassword: string | null = ''
    disableControls: boolean = false
    isPwChange: boolean = true
    odata: OData = ...
    password: string | null = ''
    passwordId: number | null = null
    savedPassword: boolean = false
    validationError: string = ''
    verified: boolean | null = null

    Methods

    • Returns void

    • Creates a new password and returns its ID.

      Returns Promise<number>

      A promise that resolves to the ID of the created password.

    • Removes a password by its ID.

      Returns Promise<void>

    • Saves the password if it has been changed. If the password is new, it creates a new password. If the password is being updated, it updates the existing password.

      Returns Promise<number | null>

      A promise that resolves to the ID of the saved password or null if no changes were made.

    • Tests the current password against the stored password using the OData service.

      Returns Promise<boolean>

      A promise that resolves to true if the password is valid, false otherwise.

    • Updates an existing password by its ID.

      Returns Promise<number>

      A promise that resolves to the ID of the updated password.