Skip to content

Commit

Permalink
disable login for deleted user
Browse files Browse the repository at this point in the history
  • Loading branch information
vancik01 committed Apr 11, 2024
1 parent 52bd1c8 commit f8c4ff8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/endpoints/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export const login = async (req: Request, res: Response) => {
try {
const user = await prisma.user.findFirst({
where: {
email: email
email: email,
deletedAt: null
},
select: {
id: true,
Expand Down

0 comments on commit f8c4ff8

Please sign in to comment.