Suppression de l'utilisateur en sessionStorage au moment de la déconnexion

develop
Yanaël GRETTE 4 years ago
parent 0a9d17741c
commit 76b666ccdc
  1. 2
      src/app/shared/nav-menu/nav-menu.component.ts

@ -4,6 +4,7 @@ import { AuthService } from '@shared/auth/auth.service';
import { Role } from '@shared/utils/roles';
import { environment } from '@env'
import { cles } from '@shared/utils/cles';
/**
* Le composant du nav menu de base.
@ -36,6 +37,7 @@ export class NavMenuComponent {
//isExpanded = false;
logout() {
sessionStorage.removeItem(cles.sessionKeyConnectee);
this.authService.logout();
}

Loading…
Cancel
Save