Commit bd7faef 1 parent 7f790e4 commit bd7faef Copy full SHA for bd7faef
File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 18
18
"ext-json" : " *" ,
19
19
"illuminate/console" : " ^10.17" ,
20
20
"illuminate/support" : " ^10.17" ,
21
- "laravel/fortify" : " ^1.15 " ,
21
+ "laravel/fortify" : " ^1.19 " ,
22
22
"mobiledetect/mobiledetectlib" : " ^4.8"
23
23
},
24
24
"require-dev" : {
Original file line number Diff line number Diff line change 6
6
use Illuminate \Contracts \Http \Kernel ;
7
7
use Illuminate \Http \RedirectResponse ;
8
8
use Illuminate \Http \Request ;
9
+ use Illuminate \Support \Facades \Auth ;
10
+ use Illuminate \Support \Facades \Event ;
9
11
use Illuminate \Support \Facades \Route ;
10
12
use Illuminate \Support \ServiceProvider ;
11
13
use Illuminate \View \Compilers \BladeCompiler ;
12
14
use Inertia \Inertia ;
15
+ use Laravel \Fortify \Events \PasswordUpdatedViaController ;
13
16
use Laravel \Fortify \Fortify ;
14
17
use Laravel \Jetstream \Http \Livewire \ApiTokenManager ;
15
18
use Laravel \Jetstream \Http \Livewire \CreateTeamForm ;
@@ -178,6 +181,12 @@ protected function bootInertia()
178
181
$ kernel ->appendToMiddlewarePriority (HandleInertiaRequests::class);
179
182
}
180
183
184
+ Event::listen (function (PasswordUpdatedViaController $ event ) {
185
+ if (request ()->hasSession ()) {
186
+ request ()->session ()->put (['password_hash_sanctum ' => Auth::user ()->getAuthPassword ()]);
187
+ }
188
+ });
189
+
181
190
Fortify::loginView (function () {
182
191
return Inertia::render ('Auth/Login ' , [
183
192
'canResetPassword ' => Route::has ('password.request ' ),
You can’t perform that action at this time.
0 commit comments