Skip to content

Commit ff3d3a4

Browse files
authored
Remove reset password spa link (#131)
* Remove reset password spa link * Fix code styling --------- Co-authored-by: mckenziearts <[email protected]>
1 parent b7fe4c0 commit ff3d3a4

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/Providers/AuthServiceProvider.php

-7
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use App\Policies\NotificationPolicy;
1414
use App\Policies\ReplyPolicy;
1515
use App\Policies\ThreadPolicy;
16-
use Illuminate\Auth\Notifications\ResetPassword;
1716
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
1817
use Illuminate\Notifications\DatabaseNotification as Notification;
1918
use Illuminate\Support\Facades\Gate;
@@ -37,12 +36,6 @@ public function boot(): void
3736
{
3837
$this->registerPolicies();
3938

40-
if (request()->ajax()) {
41-
ResetPassword::createUrlUsing(
42-
callback: fn ($user, string $token) => config('lcm.spa_url').'/auth/password/reset?token='.$token
43-
);
44-
}
45-
4639
Gate::before(fn ($user) => $user->hasRole('admin') ? true : null);
4740
}
4841
}

0 commit comments

Comments
 (0)