Added impersonation. More data available via auth service about the user. Added admin auth guard.
This commit is contained in:
@ -42,8 +42,9 @@ export class HermesClientService {
|
||||
if (!this.connected)
|
||||
return;
|
||||
|
||||
this.socket.close();
|
||||
this.connected = false;
|
||||
this.logged_in = false;
|
||||
this.socket.close();
|
||||
this.events.emit('tts_logoff', null);
|
||||
}
|
||||
|
||||
@ -58,6 +59,8 @@ export class HermesClientService {
|
||||
}
|
||||
|
||||
public login(api_key: string) {
|
||||
if (!this.connected)
|
||||
this.connect();
|
||||
if (this.logged_in)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user