@nextcloud/password-confirmation
    Preparing search index...

    Function confirmPassword

    • Confirm password if needed. Replacement of deprecated OC.PasswordConfirmation.requirePasswordConfirmation(callback)

      Parameters

      • options: { text?: string } = {}

        Additional options

        • Optionaltext?: string

          Custom text to show in the dialog, instead of the default text

      Returns Promise<void>

      Promise that resolves when password is confirmed or not needed. Rejects with PasswordConfirmationCancelledError if password confirmation was cancelled.