File tree Expand file tree Collapse file tree 5 files changed +1751
-330
lines changed
Http/Controllers/Settings Expand file tree Collapse file tree 5 files changed +1751
-330
lines changed Original file line number Diff line number Diff line change 55use App \Http \Controllers \Controller ;
66use Illuminate \Http \RedirectResponse ;
77use Illuminate \Http \Request ;
8- use Illuminate \Support \Facades \Hash ;
98use Illuminate \Validation \Rules \Password ;
109use Inertia \Inertia ;
1110use Inertia \Response ;
@@ -31,7 +30,7 @@ public function update(Request $request): RedirectResponse
3130 ]);
3231
3332 $ request ->user ()->update ([
34- 'password ' => Hash:: make ( $ validated ['password ' ]) ,
33+ 'password ' => $ validated ['password ' ],
3534 ]);
3635
3736 return back ();
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class User extends Authenticatable
3232 protected $ hidden = [
3333 'password ' ,
3434 'two_factor_secret ' ,
35- 'two_factory_recovery_codes ' ,
35+ 'two_factor_recovery_codes ' ,
3636 'remember_token ' ,
3737 ];
3838
@@ -46,6 +46,7 @@ protected function casts(): array
4646 return [
4747 'email_verified_at ' => 'datetime ' ,
4848 'password ' => 'hashed ' ,
49+ 'two_factor_confirmed_at ' => 'datetime ' ,
4950 ];
5051 }
5152}
Original file line number Diff line number Diff line change 33namespace Database \Factories ;
44
55use Illuminate \Database \Eloquent \Factories \Factory ;
6- use Illuminate \Support \Facades \Hash ;
76use Illuminate \Support \Str ;
87
98/**
@@ -27,7 +26,7 @@ public function definition(): array
2726 'name ' => fake ()->name (),
2827 'email ' => fake ()->unique ()->safeEmail (),
2928 'email_verified_at ' => now (),
30- 'password ' => static ::$ password ??= Hash:: make ( 'password ' ) ,
29+ 'password ' => static ::$ password ??= 'password ' ,
3130 'remember_token ' => Str::random (10 ),
3231 'two_factor_secret ' => Str::random (10 ),
3332 'two_factor_recovery_codes ' => Str::random (10 ),
You can’t perform that action at this time.
0 commit comments