From 6dc8a6622ecfd56c1aa318397e3e678c15166cee Mon Sep 17 00:00:00 2001 From: Takiguchi Date: Sat, 16 Feb 2019 20:21:41 +0100 Subject: [PATCH] Correction of the post login redirection. --- src/main/ts/src/app/login/login.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/ts/src/app/login/login.component.ts b/src/main/ts/src/app/login/login.component.ts index 4baecbf..d371165 100755 --- a/src/main/ts/src/app/login/login.component.ts +++ b/src/main/ts/src/app/login/login.component.ts @@ -38,7 +38,7 @@ export class LoginComponent { this.loginService.login(this.model).subscribe((pUser: User) => { console.log('Login success.'); this.authService.setAuthenticated(pUser); - this.router.navigate(['/home']); + this.router.navigate(['/myPosts']); }, (error) => { if (error.status === 401) { console.log('Login attempt failed.');