Class LoginForm

All Implemented Interfaces:
AttachNotifier, DetachNotifier, HasElement, HasEnabled, HasStyle, Serializable

@Tag("vaadin-login-form") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="24.3.11") @NpmPackage(value="@vaadin/login",version="24.3.11") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/login/src/vaadin-login-form.js") public class LoginForm extends AbstractLogin implements HasStyle
Login is a component that contains a login form. You can use it for authenticating the user with a username and password. It is compatible with password managers, supports internationalization and works on all device sizes.

The basic Login component consists of a title (Log in), two input fields (Username and Password), and two buttons (Log in and Forgot password). You can customize the form’s title, descriptions, labels, and messages using internationalization.

On AbstractLogin.LoginEvent component becomes disabled. Disabled component stops to process login events, however the AbstractLogin.ForgotPasswordEvent event is processed anyway. To enable use the HasEnabled.setEnabled(boolean) method. Setting error AbstractLogin.setError(boolean) true makes component automatically enabled for the next login attempt.

Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • LoginForm

      public LoginForm()
    • LoginForm

      public LoginForm(LoginI18n i18n)