SilverStripe\RealMe\Authenticator::authenticate
Method to authenticate an user.
Signature
public function authenticate(array
$data,
HTTPRequest
$request,
[ValidationResult&
$result = NULL] )
Parameters
$data
— array- Raw data to authenticate the user.
$request
— SilverStripe\Control\HTTPRequest
$result
— SilverStripe\ORM\ValidationResult- A validationresult which is either valid or contains the error message(s)
Returns
- Member
- The matched member, or null if the authentication fails