diff options
author | crupest <crupest@outlook.com> | 2019-03-18 21:21:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-18 21:21:56 +0800 |
commit | 69ede25976c11f0624036251523d5f1d28811740 (patch) | |
tree | 97f461c68c2a9b3d3967afefc7b3015e80107e3d /Timeline/ClientApp/src/app/user/user.service.ts | |
parent | e973ad02680f9d9ffdb9f7ac5aff9283484d2f46 (diff) | |
download | timeline-69ede25976c11f0624036251523d5f1d28811740.tar.gz timeline-69ede25976c11f0624036251523d5f1d28811740.tar.bz2 timeline-69ede25976c11f0624036251523d5f1d28811740.zip |
Add logout. Fix a bug.
The bug is it always goes to login page whether you have login or not before when user is presented in url.
Diffstat (limited to 'Timeline/ClientApp/src/app/user/user.service.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/user/user.service.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/ClientApp/src/app/user/user.service.ts b/Timeline/ClientApp/src/app/user/user.service.ts index e7d50dd2..6cae2d31 100644 --- a/Timeline/ClientApp/src/app/user/user.service.ts +++ b/Timeline/ClientApp/src/app/user/user.service.ts @@ -29,7 +29,7 @@ export class UserService { }); } - get currentUserInfo(): UserInfo | null { + get currentUserInfo(): UserInfo | null | undefined { return this.internalService.currentUserInfo; } |