WebbuildersGroup\UsernameAuth\Security\UsernameMemberLoginForm
Synopsis
class UsernameMemberLoginForm
extends Form
{
- // members
- public string $loggedInAsField = 'FirstName';
- private static array $required_fields = ;
- protected string $authenticator_class = 'UsernameMemberAuthenticator';
- // methods
- public void __construct()
- protected FieldList getFormFields()
- protected FieldList getFormActions()
- protected void getMessageFromSession()
- public string getAuthenticatorName()
- public void logout()
Hierarchy
Extends
- SilverStripe\Forms\Form
Members
private
- $required_fields
—
array
Required fields for validation
protected
- $authenticator_class
public
- $loggedInAsField
—
string
This field is used in the "You are logged in as %s" message
Methods
protected
- getFormActions() — Build default login form action FieldList
- getFormFields() — Build the FieldList for the login form
- getMessageFromSession() — Get message from session
public
- __construct() — Constructor
- getAuthenticatorName() — The name of this login form, to display in the frontend Replaces Authenticator::get_name()
- logout() — Log out form handler method