Skip to content
Snippets Groups Projects
Commit 734e5207 authored by Chris Hines's avatar Chris Hines
Browse files

add some debug statements

parent 9cd66ff5
1 merge request!117Revert "Revert "Add MLeRP Monash""
Pipeline #113039 passed
...@@ -83,7 +83,7 @@ export class AuthorisationService { ...@@ -83,7 +83,7 @@ export class AuthorisationService {
filter((v) => v !== null && v !== undefined), filter((v) => v !== null && v !== undefined),
take(1), take(1),
switchMap((v) => this.getSessionToken(v)) switchMap((v) => this.getSessionToken(v))
).subscribe((v) => { this.sessionToken = v; window.localStorage.setItem('strudel2_session', v); this.refresh() } ); ).subscribe((v) => { this.sessionToken = v; console.log('sub session token is',this.sessionToken); window.localStorage.setItem('strudel2_session', v); this.refresh() } );
// every time the list of certs/keys changes update the list of whats logged in and out // every time the list of certs/keys changes update the list of whats logged in and out
// sshAuthzServers$ won't really "change" except that it needs to be retrieved first time // sshAuthzServers$ won't really "change" except that it needs to be retrieved first time
...@@ -437,6 +437,8 @@ private getSessionToken(apiserver: any): Observable<any> { ...@@ -437,6 +437,8 @@ private getSessionToken(apiserver: any): Observable<any> {
if (this.ipcService.useIpc) { if (this.ipcService.useIpc) {
return this.ipcService.addCert(data); return this.ipcService.addCert(data);
} else { } else {
console.log('adding the certificate, session token is ',this.sessionToken);
if (this.sessionToken === null) { if (this.sessionToken === null) {
throwError('Session token is null how is this possible') throwError('Session token is null how is this possible')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment