Registration\Security\MemberAuthenticator\MemberRegistrationForm
Log-in form for the "member" authentication method.
Available extension points:
- "authenticationFailed": Called when login was not successful.
Arguments: $data containing the form submission
- "forgotPassword": Called before forgot password logic kicks in,
allowing extensions to "veto" execution by returning FALSE.
Arguments: $member containing the detected Member record
Synopsis
class MemberRegistrationForm
extends LoginForm
{
- // members
- public string $loggedInAsField = 'FirstName';
- private static array $required_fields = ;
- // methods
- public void __construct()
- protected FieldList getFormFields()
- protected FieldList getFormActions()
- public void restoreFormState()
- public string getAuthenticatorName()
Hierarchy
Extends
- SilverStripe\Security\LoginForm
Members
private
- $required_fields
—
array
Required fields for validation
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
public
- __construct() — Constructor
- getAuthenticatorName() — The name of this login form, to display in the frontend Replaces Authenticator::get_name()
- restoreFormState()