fix: lowercase email when loggin in (#1038)
parent
69a54d10df
commit
1043b31cc7
|
@ -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(),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue