public function onMethodVerificationFailure(Member $member, $method)
    {
        $context = [
            'method' => get_class($method),
        ];
        if ($lockOutAfterCount = $member->config()->get('lock_out_after_incorrect_logins')) {
            // Add information about how many attempts have been made
            $context['attempts'] = $member->FailedLoginCount;
            $context['attempt_limit'] = $lockOutAfterCount;
        }

        $this->getAuditLogger()->info(sprintf(
            '"%s" (ID: %s) failed to verify using MFA method',
            $member->Email ?: $member->Title,
            $member->ID
        ), $context);
    }
public function onMethodVerificationFailure(Member $member, $method)
    {
        $context = [
            'method' => get_class($method),
        ];
        if ($lockOutAfterCount = $member->config()->get('lock_out_after_incorrect_logins')) {
            // Add information about how many attempts have been made
            $context['attempts'] = $member->FailedLoginCount;
            $context['attempt_limit'] = $lockOutAfterCount;
        }

        $this->getAuditLogger()->info(sprintf(
            '"%s" (ID: %s) failed to verify using MFA method',
            $member->Email ?: $member->Title,
            $member->ID
        ), $context);
    }
public function onMethodVerificationFailure ( Member $ member , $ method ) { $ context = [ 'method' => get_class ( $ method ) , ] ; if ( $ lockOutAfterCount = $ member -> config ( ) -> get ( 'lock_out_after_incorrect_logins' ) ) { // Add information about how many attempts have been made $ context [ 'attempts' ] = $ member -> FailedLoginCount ; $ context [ 'attempt_limit' ] = $ lockOutAfterCount ; } $ this -> getAuditLogger ( ) -> info ( sprintf ( '"%s" (ID: %s) failed to verify using MFA method' , $ member -> Email ? : $ member -> Title , $ member -> ID ) , $ context ) ; }
A failed login using an MFA method

@param Member $member
@param MethodInterface $method
A failed login using an MFA method