mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-09 03:35:14 -05:00
Fixed that loggin in via web wasnt setting the last known username
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user