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