fix broken register/login process

This commit is contained in:
ansuz
2017-11-24 15:12:00 +01:00
parent a3c093838c
commit 701af29192
3 changed files with 12 additions and 3 deletions

View File

@@ -52,6 +52,11 @@ define([
return hash;
};
var setUserHash = LocalStore.setUserHash = function (hash) {
var sHash = Hash.serializeHash(hash);
localStorage[Constants.userHashKey] = sHash;
};
LocalStore.getAccountName = function () {
return localStorage[Constants.userNameKey];
};