Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use App\Policies\NotificationPolicy;
use App\Policies\ReplyPolicy;
use App\Policies\ThreadPolicy;
use Illuminate\Auth\Notifications\ResetPassword;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Notifications\DatabaseNotification as Notification;
use Illuminate\Support\Facades\Gate;
Expand All @@ -37,12 +36,6 @@ public function boot(): void
{
$this->registerPolicies();

if (request()->ajax()) {
ResetPassword::createUrlUsing(
callback: fn ($user, string $token) => config('lcm.spa_url').'/auth/password/reset?token='.$token
);
}

Gate::before(fn ($user) => $user->hasRole('admin') ? true : null);
}
}