This commit is contained in:
Peter Maquiran
2023-01-03 21:08:49 +01:00
parent f7aae9aa00
commit fcc8bc6b74
20 changed files with 356 additions and 68 deletions
+1 -13
View File
@@ -95,14 +95,11 @@ export class AuthService {
} else {
session.Profile = 'Unknown'
}
session.Password = user.password
session.BasicAuthKey = user.BasicAuthKey
SessionStore.reset(session)
this.storageService.store(AuthConnstants.USER, response);
return true;
}
@@ -220,15 +217,6 @@ export class AuthService {
}
// Get user data from RocketChat | global object
getUserData() {
this.storageService.get(AuthConnstants.AUTH).then(res=>{
this.userData$.next(res);
}).catch((error) => {
console.error('storage getuserdata',error)
});
}
logoutChat() {
}