We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f816957 commit aebb3b5Copy full SHA for aebb3b5
lib/private/Security/IdentityProof/Signer.php
@@ -93,12 +93,12 @@ public function verify(array $data): bool {
93
$user = $this->userManager->get($userId);
94
if ($user !== null) {
95
$key = $this->keyManager->getKey($user);
96
- return (bool)openssl_verify(
+ return openssl_verify(
97
json_encode($data['message']),
98
base64_decode($data['signature']),
99
$key->getPublic(),
100
OPENSSL_ALGO_SHA512
101
- );
+ ) === 1;
102
}
103
104
0 commit comments