Description

Creates a login form

Usage

as element:
<widget:login-form
       [logo="{string}"]
       [logo-alt="{string}"]
       [title="{string}"]
       [message="{string}"]
       [action="{string}"]
       [method="{string}"]
       [username="{string}"]
       [password="{string}"]
       [username-placeholder="{string}"]
       [password-placeholder="{string}"]
       [remember="{string}"]
       [submit-label="{string}"]
       [access-denied="{string}"]
       [error-message="{string}"]
       [reset-link="{string}"]
       [create-link="{string}"]
       [username-error-message="{string}"]
       [password-error-message="{string}"]>
</widget:login-form>

Parameters

ParamTypeDetails
logo (optional)stringThe path to the logo
logo-alt (optional)stringThe alt text for the logo
title (optional)stringThe title text that displays below the logo
message (optional)stringThe message to display below the title
action (optional)stringURL to send the form data to
method (optional)stringThe form method to use. Default POST
username (optional)stringThe name of the username input
password (optional)stringThe name of the password input
username-placeholder (optional)stringThe placeholder of the username input
password-placeholder (optional)stringThe placeholder of the password input
remember (optional)stringThe name of the remember input. Set to false to hide remember me checkbox (default: “remember”)
submit-label (optional)stringThe text on the submit button. (default: “Login”)
access-denied (optional)stringChecks the URL for the value of access-denied, if found the error message will be displayed E.g. access=denied
error-message (optional)stringThe error message to display when the login is rejected. (default: “Invalid username or password”)
reset-link (optional)stringProvide a link to reset the user’s password
create-link (optional)stringProvide a link to for a user to request an account
username-error-message (optional)stringMessage to display if the username is not entered or valid. (default: “This field is required.”)
password-error-message (optional)stringMessage to display if the password is not entered or valid. (default: “This field is required.”)

Example

Source

<widget:login-form></widget:login-form>

Result

Result