mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-12 13:15:26 -05:00
Finished consent endpoint.
Also modified some log levels to make more sense.
This commit is contained in:
@@ -20,12 +20,12 @@ public function login(SteamLoginRequest $request)
|
||||
$steamResponse = $steamRequest->authenticateTicket();
|
||||
|
||||
if($steamResponse === false) {
|
||||
$log->info('Authenticating session ticket failed: {error}.', ['error' => $steamRequest->getError()]);
|
||||
$log->alert('Authenticating session ticket failed: {error}.', ['error' => $steamRequest->getError()]);
|
||||
return response('Error: '.$steamRequest->getError(), 500);
|
||||
}
|
||||
|
||||
if($steamResponse->isBanned()) {
|
||||
$log->info('User with SteamID "{id}" denied login. User is Banned via Steam', ['id' => $steamResponse->steamId]);
|
||||
$log->notice('User with SteamID "{id}" denied login. User is Banned via Steam', ['id' => $steamResponse->steamId]);
|
||||
return response('Unauthorized: You are Steam banned', 401);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user