on login, update updated_at

This commit is contained in:
Andras Bacsai 2023-08-17 15:18:03 +02:00
parent c26002426f
commit 5a3457c180

View File

@ -80,6 +80,8 @@ public function boot(): void
$user && $user &&
Hash::check($request->password, $user->password) Hash::check($request->password, $user->password)
) { ) {
$user->updated_at = now();
$user->save();
session(['currentTeam' => $user->currentTeam = $user->teams->firstWhere('personal_team', true)]); session(['currentTeam' => $user->currentTeam = $user->teams->firstWhere('personal_team', true)]);
return $user; return $user;
} }