simple one line fixes
This commit is contained in:
@@ -58,7 +58,7 @@ define([
|
||||
localStorage[Constants.userHashKey] = sHash;
|
||||
};
|
||||
|
||||
LocalStore.getBlockHash = function () {
|
||||
var getBlockHash = LocalStore.getBlockHash = function () {
|
||||
return localStorage[Constants.blockHashKey];
|
||||
};
|
||||
|
||||
@@ -71,7 +71,8 @@ define([
|
||||
};
|
||||
|
||||
LocalStore.isLoggedIn = function () {
|
||||
return typeof getUserHash() === "string";
|
||||
return typeof getBlockHash() === 'string' ||
|
||||
typeof getUserHash() === "string";
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -34,8 +34,6 @@ define([
|
||||
var symmetric = seed.subarray(Nacl.sign.seedLength,
|
||||
Nacl.sign.seedLength + Nacl.secretbox.keyLength);
|
||||
|
||||
console.log("symmetric key: ", Nacl.util.encodeBase64(symmetric));
|
||||
|
||||
return {
|
||||
sign: Nacl.sign.keyPair.fromSeed(signSeed), // 32 bytes
|
||||
symmetric: symmetric, // 32 bytes ...
|
||||
|
||||
Reference in New Issue
Block a user