lundi 24 juin 2019

Laravel Failed Login Event is not fired

I try to listen to login failures events, however, my listener is never called.

I registered the listener in the EventServiceProvider:

protected $listen = [
    'Illuminate\Auth\Events\Login' => [
        MyFailedLoginAttemptListener::class,
    ],
    Registered::class              => [
        SendEmailVerificationNotification::class,
    ],
];

But when a user fails to login my listener is not called

public function handle( Login $event ) {
        var_dump( $event );
        exit;
    }
}

What is wrong, I've spent a lot of time trying to debug this issue.

Thank you.



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2ZL2jtY
via IFTTT

Aucun commentaire:

Enregistrer un commentaire