add - changement mail envoyé lors de la connexion rapide
This commit is contained in:
1 parent
4e404bcb9d
commit
108193f202
2 files changed
+248
-2
No files matched your search
@@ -6,7 +6,7 @@ import GoogleProvider from "next-auth/providers/google";
|
||||
import EmailProvider from 'next-auth/providers/email'
|
||||
import prisma from '../../../lib/prisma'
|
||||
import { Session } from "@prisma/client";
|
||||
|
||||
import { CustomsendVerificationRequest } from "./signinemail"
|
||||
|
||||
const authHandler: NextApiHandler = (req, res) => NextAuth(req, res, options);
|
||||
export default authHandler;
|
||||
@@ -27,7 +27,10 @@ const options = {
|
||||
pass: process.env.EMAIL_SERVER_PASSWORD
|
||||
}
|
||||
},
|
||||
from: process.env.EMAIL_FROM
|
||||
from: process.env.EMAIL_FROM,
|
||||
sendVerificationRequest({ identifier, url, provider }) {
|
||||
CustomsendVerificationRequest({ identifier, url, provider })
|
||||
}
|
||||
}),
|
||||
],
|
||||
adapter: PrismaAdapter(prisma),
|
||||
|
||||
Reference in new issue
Block a user