Skip to content

Commit

Permalink
fix: make auth actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
Repflez committed Oct 26, 2023
1 parent dade71c commit af6affa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CurrentSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ public static function authByConsole($serviceToken) : void
{
$consoles = DB::table('console_auth')
->where([
'short_id' => $serviceToken->long,
'long_id' => $serviceToken->long,
])
->count();

// TODO: Clean this
if ($consoles === 1) {
$user = DB::table('console_auth')
->where([
'short_id' => $serviceToken->long,
'long_id' => $serviceToken->long,
])
->first();
} elseif ($consoles > 1) {
Expand Down

0 comments on commit af6affa

Please sign in to comment.