From 8f81a4ae60760a5f8bf5c791db566ac9251f4ba0 Mon Sep 17 00:00:00 2001 From: jacquesfize Date: Wed, 27 Nov 2024 15:41:15 +0100 Subject: [PATCH] fix(public_login) : fix public login --- frontend/src/app/components/auth/auth.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/app/components/auth/auth.service.ts b/frontend/src/app/components/auth/auth.service.ts index fd9bdd6ae1..942c7358d8 100644 --- a/frontend/src/app/components/auth/auth.service.ts +++ b/frontend/src/app/components/auth/auth.service.ts @@ -71,6 +71,10 @@ export class AuthService { manageUser(data): any { this.setSession(data); + if (!data.user.providers) { + // when using public login + data.user.providers = []; + } const userForFront = { user_login: data.user.identifiant, prenom_role: data.user.prenom_role,