mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
fix
This commit is contained in:
@@ -43,11 +43,15 @@ class SessionService {
|
||||
constructor() {
|
||||
|
||||
this.keyName = (SHA1("SessionService")).toString()
|
||||
let restore = localstoreService.get(this.keyName, {})
|
||||
let restore = this.getDataFromLocalStorage()
|
||||
this._user = restore.user || new UserSession()
|
||||
|
||||
}
|
||||
|
||||
getDataFromLocalStorage() {
|
||||
return localstoreService.get(this.keyName, {})
|
||||
}
|
||||
|
||||
get user(): UserSession {
|
||||
return this._user || new UserSession()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user