Added impersonation. More data available via auth service about the user. Added admin auth guard.

This commit is contained in:
Tom
2024-10-31 05:33:11 +00:00
parent 65f4172bc2
commit 2bde8b850a
16 changed files with 218 additions and 47 deletions

View File

@ -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;