mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 12:03:03 +00:00
Merge branch 'master' into angular-cli
This commit is contained in:
@@ -23,7 +23,7 @@ export class AuthRequestServiceStub {
|
||||
} else {
|
||||
authStatusStub.authenticated = false;
|
||||
}
|
||||
} else {
|
||||
} else if (isNotEmpty(options)) {
|
||||
const token = (options.headers as any).lazyUpdate[1].value;
|
||||
if (this.validateToken(token)) {
|
||||
authStatusStub.authenticated = true;
|
||||
@@ -32,6 +32,8 @@ export class AuthRequestServiceStub {
|
||||
} else {
|
||||
authStatusStub.authenticated = false;
|
||||
}
|
||||
} else {
|
||||
authStatusStub.authenticated = false;
|
||||
}
|
||||
return observableOf(authStatusStub);
|
||||
}
|
||||
@@ -43,7 +45,7 @@ export class AuthRequestServiceStub {
|
||||
authStatusStub.authenticated = false;
|
||||
break;
|
||||
case 'status':
|
||||
const token = (options.headers as any).lazyUpdate[1].value;
|
||||
const token = ((options.headers as any).lazyUpdate[1]) ? (options.headers as any).lazyUpdate[1].value : null;
|
||||
if (this.validateToken(token)) {
|
||||
authStatusStub.authenticated = true;
|
||||
authStatusStub.token = this.mockTokenInfo;
|
||||
|
Reference in New Issue
Block a user