Let email case sensitive (#1357)

pull/1355/head^2
Omar López 2021-12-19 14:01:25 -07:00 committed by GitHub
parent cbf528c33e
commit 3bc659af44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export default NextAuth({
async authorize(credentials) { async authorize(credentials) {
const user = await prisma.user.findUnique({ const user = await prisma.user.findUnique({
where: { where: {
email: credentials.email.toLowerCase(), email: credentials.email,
}, },
}); });