Skip to content

Commit

Permalink
Run listener only enabled auth
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed May 11, 2024
1 parent 637d810 commit 0d4f6a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Platform/Providers/FoundationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ public function registerOctaneEventsListen(): self
*/
public function registerLoginEventsListen():self
{
Event::listen(Login::class, LockUserForLogin::class,);
if (config('platform.auth', true)) {
Event::listen(Login::class, LockUserForLogin::class);
}

return $this;
}

/**
Expand Down

0 comments on commit 0d4f6a3

Please sign in to comment.