You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have three different models that can login to my application: Users, Applications, Enrolments. They are completely different models as they do completely different things. All start like this:
class User extends Authenticatable implements MustVerifyEmail
class Application extends Authenticatable implements MustVerifyEmail
class Enrolment extends Authenticatable implements MustVerifyEmail
but only User has use AuthenticationLoggable;
When an Application or an Enrolment logs in the Login event is triggered and the rappasoft listener Rappasoft\LaravelAuthenticationLog\Listeners\LoginListener::handle responds to it and fails:
I have three different models that can login to my application: Users, Applications, Enrolments. They are completely different models as they do completely different things. All start like this:
class User extends Authenticatable implements MustVerifyEmail
class Application extends Authenticatable implements MustVerifyEmail
class Enrolment extends Authenticatable implements MustVerifyEmail
but only
User
hasuse AuthenticationLoggable;
When an
Application
or anEnrolment
logs in the Login event is triggered and the rappasoft listenerRappasoft\LaravelAuthenticationLog\Listeners\LoginListener::handle
responds to it and fails:i.e. when
$known = $user->authentications()
is called.I think the listener should stop responding if the user model doesn't
use AuthenticationLoggable
Could be the problem in #33 too?
The text was updated successfully, but these errors were encountered: