Skip to content

Commit

Permalink
correction admin utilisateur désactivé
Browse files Browse the repository at this point in the history
  • Loading branch information
darsane21 committed Jun 22, 2023
1 parent 1723569 commit 9aaa5a3
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 9aaa5a3

Please sign in to comment.