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 | 110f2ab8d7bf5cf5fefee2fadb89f0e548dc0f4d (patch) | |
tree | 43b4694b7b1626b746f56d3937c1f58a4b8f15fb /Timeline/ClientApp/src/app/user/user.service.ts | |
parent | 442d784b2a3ed0c8f0c64d1aaae2b1e0fbefe01f (diff) | |
download | timeline-110f2ab8d7bf5cf5fefee2fadb89f0e548dc0f4d.tar.gz timeline-110f2ab8d7bf5cf5fefee2fadb89f0e548dc0f4d.tar.bz2 timeline-110f2ab8d7bf5cf5fefee2fadb89f0e548dc0f4d.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; } |