Finished consent endpoint.

Also modified some log levels to make more sense.
This commit is contained in:
Vari
2024-02-13 00:55:46 +01:00
parent 7931766a35
commit 24f4a87779
6 changed files with 47 additions and 17 deletions

View File

@@ -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);
}