diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 2a64e876..3b23f193 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -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; @@ -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); } }