complete modern user registration/login. general cleanup

This commit is contained in:
ansuz
2018-07-09 14:20:38 +02:00
parent 3d4b693722
commit a15e232469
2 changed files with 54 additions and 107 deletions

View File

@@ -1068,7 +1068,10 @@ define([
// put your userhash into localStorage
try {
var block_info = Block.decrypt(arraybuffer, parsed.keys);
//if (block_info[Constants.userHashKey]) { LocalStore.setUserHash(block_info[Constants.userHashKey]); }
if (!block_info) {
console.error("Failed to decrypt !");
return;
}
userHash = block_info[Constants.userHashKey];
} catch (e) {
console.error(e);