Let email case sensitive (#1357)

This commit is contained in:
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

View File

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