Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfame committed Sep 14, 2023
1 parent 26fe620 commit 9907795
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Storage/AuthorizationCodeStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ private function getUserIdByCode( $code ) {

if ( count( $users ) > 1 ) {
// This should never happen.
// If it does, something is wrong, so it's best to not return any user.
// If it does, something is wrong, so only return the right user if only one user had the auth code stored.
// otherwise not return any user at all.
$debug_log = "[CONCURRENTLOGINS] more than 1 user found for code: $code.";
$found = 0;
$found_user_id = 0;
Expand Down

0 comments on commit 9907795

Please sign in to comment.