EmailVerificationLoginForm::__construct
EmailVerificationLoginForm is the same as MemberLoginForm with the following changes: - The code has been cleaned up.
- A form action for users who have lost their verification email has been added. We add fields in the constructor so the form is generated when instantiated.
Signature
public function __construct(Controller
$controller,
string
$name,
[FieldList|FormField
$fields = NULL,
[FieldList|FormAction
$actions = NULL,
[boolean
$checkCurrentUser = true]]] )
Parameters
$controller
— object- The parent controller, necessary to create the appropriate form action tag.
$name
— string- The method on the controller that will return this form object.
$fields
— object- All of the fields in the form - a {@link FieldList} of {@link FormField} objects.
$actions
— object- All of the action buttons in the form - a {@link FieldList} of {@link FormAction} objects
$checkCurrentUser
— boolean- If set to TRUE, it will be checked if a the user is currently logged in, and if so, only a logout button will be rendered