mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-08 08:13:11 +08:00
Hash existing API keys, and do checks against the hash
This commit is contained in:
@@ -67,8 +67,7 @@ readonly class ApiKeyService implements ApiKeyServiceInterface
|
||||
private function getByKey(string $key): ApiKey|null
|
||||
{
|
||||
return $this->em->getRepository(ApiKey::class)->findOneBy([
|
||||
// 'key' => ApiKey::hashKey($key),
|
||||
'key' => $key,
|
||||
'key' => ApiKey::hashKey($key),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user