on login, update updated_at
This commit is contained in:
parent
c26002426f
commit
5a3457c180
1 changed files with 2 additions and 0 deletions
|
|
@ -80,6 +80,8 @@ public function boot(): void
|
|||
$user &&
|
||||
Hash::check($request->password, $user->password)
|
||||
) {
|
||||
$user->updated_at = now();
|
||||
$user->save();
|
||||
session(['currentTeam' => $user->currentTeam = $user->teams->firstWhere('personal_team', true)]);
|
||||
return $user;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue