Skip to content

Commit

Permalink
(fix): remove comment on authguard place authentication method back i…
Browse files Browse the repository at this point in the history
…n login component
  • Loading branch information
akilah-littlejohn committed Sep 10, 2021
1 parent c0b07cc commit 4070cb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { AuthCallbackComponent } from './components/auth-callback/auth-callback.
const routes: Routes = [
{
path: 'cases', component: CaseComponent,
//canActivate: [AuthenticatedUserGuard]
canActivate: [AuthenticatedUserGuard]
},
{ path: 'login', component: LoginComponent },
{ path: 'logout', component: LogoutComponent },
Expand Down
10 changes: 4 additions & 6 deletions web/src/app/components/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ export class LoginComponent implements OnInit {
}

login() {

this.router.navigate(['cases'])

//this.authService.startAuthentication()


if (this.returnRoute) {
this.authService.setOriginalUrl(this.returnRoute);
}
this.authService.startAuthentication();
}

signup() {
Expand Down

0 comments on commit 4070cb0

Please sign in to comment.