Class PasswordPromptDialog


public class PasswordPromptDialog extends WDialog
A dialog that prompts for the user password.

This is a simple dialog, useful for prompting the user to enter his password. This may be convenient for example to let the user upgrade from a weak authentication to a strong authentication.

The dialog uses a Login object to get the currently identified user, and also sets the result of the login process by calling Login#login() on this object.

The dialog renders the "Wt.Auth.template.password-prompt" template.

  • Field Details

  • Constructor Details

  • Method Details

    • setMfaProcess

      public void setMfaProcess(AbstractMfaProcess mfaProcess)
      Sets the multi-factor authentication process.

      Adds a multi-factor authentication process that will be used after the correct password has been entered.

    • getMfaProcess

      public AbstractMfaProcess getMfaProcess()
      Returns the multi-factor authentication process.

      Returns the multi-factor authentication process that has been set, or null if none has been set.

    • check

      protected void check()
    • showMfaProcess

      protected void showMfaProcess()