fix: lowercase email when loggin in (#1038)

This commit is contained in:
Mihai C authored and GitHub committed 2021-10-25 14:25:28 +05:30
1 parent 69a54d10df
commit 1043b31cc7
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ export default NextAuth({
async authorize(credentials) {
const user = await prisma.user.findUnique({
where: {
email: credentials.email,
email: credentials.email.toLowerCase(),
},
});