Let email case sensitive (#1357)
parent
cbf528c33e
commit
3bc659af44
|
@ -29,7 +29,7 @@ export default NextAuth({
|
|||
async authorize(credentials) {
|
||||
const user = await prisma.user.findUnique({
|
||||
where: {
|
||||
email: credentials.email.toLowerCase(),
|
||||
email: credentials.email,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue