Skip to content
Snippets Groups Projects
Unverified Commit 0cb1d7a2 authored by florimondmanca's avatar florimondmanca
Browse files

redirect to member site after login

parent a35586f0
Branches
No related tags found
2 merge requests!20Espace membre,!26Release first-users version to production
...@@ -14,7 +14,7 @@ import { filter, map, tap, catchError } from 'rxjs/operators'; ...@@ -14,7 +14,7 @@ import { filter, map, tap, catchError } from 'rxjs/operators';
export class LoginComponent implements OnInit { export class LoginComponent implements OnInit {
loading: boolean = false; loading: boolean = false;
defaultRedirectUrl: string = '/'; defaultRedirectUrl: string = '/membres';
formGroup: FormGroup; formGroup: FormGroup;
constructor( constructor(
......
<a *ngIf="!user" routerLink="/connexion">Connexion</a> <a *ngIf="!user" routerLink="/connexion">Connexion</a>
<!-- TODO: redirect to member site --> <a *ngIf="user" routerLink="/membres">
<a *ngIf="user" routerLink="/">
<mat-icon inline="true">person</mat-icon> {{ user.fullName }} <mat-icon inline="true">person</mat-icon> {{ user.fullName }}
</a> </a>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment