mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
remove unused imports
This commit is contained in:
@@ -28,9 +28,7 @@ export class AuthService {
|
||||
userData$ = new BehaviorSubject<any>('');
|
||||
userId$ = new BehaviorSubject<any>('');
|
||||
headers: HttpHeaders;
|
||||
public ValidatedUser: UserSession;
|
||||
public wsValidatedUserChat:any;
|
||||
public ValidatedUserChat:any = {}
|
||||
public isWsAuthenticated: boolean = false;
|
||||
opts:any;
|
||||
|
||||
@@ -54,17 +52,11 @@ export class AuthService {
|
||||
this.headers = new HttpHeaders();
|
||||
|
||||
if (SessionStore.exist) {
|
||||
this.ValidatedUser = SessionStore.user
|
||||
|
||||
if(this.p.userPermission(this.p.permissionList.Chat.access) == true ) {
|
||||
this.loginToChatWs()
|
||||
}
|
||||
}
|
||||
|
||||
if(SessionStore?.user?.ChatData) {
|
||||
this.ValidatedUserChat = SessionStore.user.ChatData
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -110,7 +102,6 @@ export class AuthService {
|
||||
session.BasicAuthKey = user.BasicAuthKey
|
||||
|
||||
SessionStore.reset(session)
|
||||
this.ValidatedUser = SessionStore.user;
|
||||
|
||||
this.storageService.store(AuthConnstants.USER, response);
|
||||
|
||||
@@ -120,11 +111,9 @@ export class AuthService {
|
||||
this.initialsService.getInitials(session.FullName);
|
||||
}
|
||||
|
||||
async loginChat(responseChat = this.ValidatedUserChat) {
|
||||
async loginChat(responseChat?) {
|
||||
|
||||
|
||||
if(SessionStore?.user?.ChatData) {
|
||||
this.ValidatedUserChat = SessionStore.user.ChatData
|
||||
}
|
||||
}
|
||||
|
||||
async autoLoginChat(expirationDate:number) {
|
||||
@@ -234,7 +223,6 @@ export class AuthService {
|
||||
|
||||
logout() {
|
||||
|
||||
this.ValidatedUser = null;
|
||||
localStorage.removeItem('userChat');
|
||||
|
||||
SessionStore.setInativity(false)
|
||||
|
||||
Reference in New Issue
Block a user