Class LoginForm

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasStyle, Serializable

    @Tag("vaadin-login-form")
    @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="23.5.12") @NpmPackage(value="@vaadin/login",version="23.5.12") @NpmPackage(value="@vaadin/vaadin-login",version="23.5.12")
    @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/login/src/vaadin-login-form.js")
    public class LoginForm
    extends AbstractLogin
    implements com.vaadin.flow.component.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:
    Serialized Form
    • Constructor Detail

      • LoginForm

        public LoginForm()
      • LoginForm

        public LoginForm​(LoginI18n i18n)