From 51744723296d743a6cbaac868b1eca3876c895e9 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 17 Dec 2019 11:48:23 +0100 Subject: [PATCH] Fix link generation bug --- www/common/invitation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/invitation.js b/www/common/invitation.js index d73d5dd53..d41982bf2 100644 --- a/www/common/invitation.js +++ b/www/common/invitation.js @@ -2,8 +2,9 @@ var factory = function (Hash, Crypt, Nacl, Scrypt/*, Util, Cred, nThen */) { var Invite = {}; - Invite.deriveSeeds = function (seed) { + Invite.deriveSeeds = function (safeSeed) { // take the hash of the provided seed + seed = safeSeed.replace(/\-/g, '/'); var u8_seed = Nacl.hash(Nacl.util.decodeBase64(seed)); // hash the first half again for scrypt's input