mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
improve
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user