Skip to content

Commit

Permalink
Remove unneccessary if check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephster committed Mar 27, 2024
1 parent 2e5b055 commit 6e29082
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/src/Repositories/ClientRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ public function validateClient($clientIdentifier, $clientSecret, $grantType): bo
return false;
}

if (
$clients[$clientIdentifier]['is_confidential'] === true
&& password_verify($clientSecret, $clients[$clientIdentifier]['secret']) === false
) {
if (password_verify($clientSecret, $clients[$clientIdentifier]['secret']) === false) {
return false;
}

Expand Down

0 comments on commit 6e29082

Please sign in to comment.