Skip to content

Commit 5381c79

Browse files
committed
tyle(session): use Session facade consistently in UserService
Replace request()->session()->regenerate() with Session::regenerate() to match the pattern used throughout the rest of the project, and add the missing Session facade import.
1 parent f61514b commit 5381c79

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/Services/OpenId/UserService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
use Illuminate\Support\Facades\Config;
3535
use Illuminate\Support\Facades\Event;
3636
use Illuminate\Support\Facades\Log;
37+
use Illuminate\Support\Facades\Session;
3738
use Illuminate\Support\Facades\Mail;
3839
use Illuminate\Support\Facades\Storage;
3940
use models\exceptions\EntityNotFoundException;
@@ -382,7 +383,7 @@ public function update(int $id, array $payload): IEntity
382383
});
383384

384385
if ($password_changed) {
385-
request()->session()->regenerate();
386+
Session::regenerate();
386387
Event::dispatch(new UserPasswordResetSuccessful($user->getId()));
387388
}
388389

0 commit comments

Comments
 (0)