Fixed that loggin in via web wasnt setting the last known username

This commit is contained in:
Vari
2024-02-24 15:00:13 +01:00
parent 1ba68f56d5
commit dc628828e0

View File

@@ -21,6 +21,8 @@ public function callback()
$user = Socialite::driver('steam')->user();
$loggedInUser = User::firstOrCreate(['steam_id' => $user->getId()], ['source' => 'WEB']);
Auth::login($loggedInUser);
$loggedInUser->last_known_username = $user->getNickname();
$loggedInUser->save();
Log::stack(['stack', 'login'])->info('User with SteamID "{id}" successfully logged in via Web.', ['id' => $loggedInUser->steam_id]);