Skip to content

Commit

Permalink
fix(public_login) : fix public login
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Nov 27, 2024
1 parent 2c30b43 commit 8f81a4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/app/components/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8f81a4a

Please sign in to comment.