Description

Creates a login page with a form. All of the attributes are passed to the form.

Usage

as element:
<widget:login-page
       [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}"]>
</widget:login-page>

Parameters

ParamTypeDetails
logo (optional)stringThe path to the logo
logoAlt (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. Default: remember. Set to false to hide remember me checkbox (default: “remember”)
submit-label (optional)stringThe text on the submit button. Default: Login (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 (default: “Invalid username or password”)

Example

Source

<widget:login-page></widget:login-page>

Result

Result