Throw exception when no password hash is found for the given peer UUID

This commit is contained in:
netkas 2025-03-28 13:52:59 -04:00
parent 68eaaf91c2
commit 0669f13493
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -199,7 +199,7 @@
$record = $stmt->fetch(PDO::FETCH_ASSOC); $record = $stmt->fetch(PDO::FETCH_ASSOC);
if($record === false) if($record === false)
{ {
return false; throw new DatabaseOperationException('No password hash found for the given peer UUID');
} }
$encryptedHash = $record['hash']; $encryptedHash = $record['hash'];