Skip to content

Commit

Permalink
Merge pull request #26 from BaptisteBuvron/utilisateur_inactif
Browse files Browse the repository at this point in the history
correction admin utilisateur désactivé
  • Loading branch information
BaptisteBuvron committed Jun 22, 2023
2 parents 1723569 + 9aaa5a3 commit bc9e10d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/passport/passportFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ passport.use(
if (!passwordMatches) {
return done(null, false, { message: "Mot de passe incorrect" });
}
if (userLogged.statut == false) {
return done(null, false, { message: "Compte désactivé" });
}

return done(null, user, { message: "Vous êtes connecté!" });
})
Expand Down

0 comments on commit bc9e10d

Please sign in to comment.