diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-19 12:42:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-19 12:45:40 +0200 |
commit | 40ed9f6aaeb9e78fc8d9a5f82bd7dbad16639051 (patch) | |
tree | de2ea883925e3eb03b687872fcaaa49c18bb636c /server/helpers | |
parent | 1c4e716e42f9db0fe5fb57b07455c9b9c75aeb07 (diff) | |
download | PeerTube-40ed9f6aaeb9e78fc8d9a5f82bd7dbad16639051.tar.gz PeerTube-40ed9f6aaeb9e78fc8d9a5f82bd7dbad16639051.tar.zst PeerTube-40ed9f6aaeb9e78fc8d9a5f82bd7dbad16639051.zip |
Update translations
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/peertube-crypto.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/helpers/peertube-crypto.ts b/server/helpers/peertube-crypto.ts index cb5f27240..8ef7b1359 100644 --- a/server/helpers/peertube-crypto.ts +++ b/server/helpers/peertube-crypto.ts | |||
@@ -62,10 +62,7 @@ function isJsonLDSignatureVerified (fromActor: ActorModel, signedDocument: any) | |||
62 | 62 | ||
63 | return jsig.promises | 63 | return jsig.promises |
64 | .verify(signedDocument, options) | 64 | .verify(signedDocument, options) |
65 | .then((result: { verified: boolean }) => { | 65 | .then((result: { verified: boolean }) => result.verified) |
66 | logger.info('coucou', result) | ||
67 | return result.verified | ||
68 | }) | ||
69 | .catch(err => { | 66 | .catch(err => { |
70 | logger.error('Cannot check signature.', { err }) | 67 | logger.error('Cannot check signature.', { err }) |
71 | return false | 68 | return false |