fix: lowercase email when loggin in (#1038)

pull/1039/head
Mihai C 2021-10-25 11:55:28 +03:00 committed by GitHub
parent 69a54d10df
commit 1043b31cc7
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, email: credentials.email.toLowerCase(),
}, },
}); });