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,