diff options
Diffstat (limited to 'server/helpers/peertube-crypto.ts')
-rw-r--r-- | server/helpers/peertube-crypto.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/peertube-crypto.ts b/server/helpers/peertube-crypto.ts index 47f0243e7..fbc3bdcc2 100644 --- a/server/helpers/peertube-crypto.ts +++ b/server/helpers/peertube-crypto.ts | |||
@@ -58,7 +58,7 @@ async function sign (data: string|Object) { | |||
58 | sign.update(dataString, 'utf8') | 58 | sign.update(dataString, 'utf8') |
59 | 59 | ||
60 | const myKey = await getMyPrivateCert() | 60 | const myKey = await getMyPrivateCert() |
61 | return await sign.sign(myKey, SIGNATURE_ENCODING) | 61 | return sign.sign(myKey, SIGNATURE_ENCODING) |
62 | } | 62 | } |
63 | 63 | ||
64 | function comparePassword (plainPassword: string, hashPassword: string) { | 64 | function comparePassword (plainPassword: string, hashPassword: string) { |
@@ -68,7 +68,7 @@ function comparePassword (plainPassword: string, hashPassword: string) { | |||
68 | async function createCertsIfNotExist () { | 68 | async function createCertsIfNotExist () { |
69 | const exist = await certsExist() | 69 | const exist = await certsExist() |
70 | if (exist === true) { | 70 | if (exist === true) { |
71 | return undefined | 71 | return |
72 | } | 72 | } |
73 | 73 | ||
74 | return await createCerts() | 74 | return await createCerts() |