sdy

update resetPassword

...@@ -4,6 +4,7 @@ import bcrypt from "bcryptjs"; ...@@ -4,6 +4,7 @@ import bcrypt from "bcryptjs";
4 export default { 4 export default {
5 Mutation: { 5 Mutation: {
6 resetPassword: async (_, args, { request }) => { 6 resetPassword: async (_, args, { request }) => {
7 + console.log(request);
7 isAuthenticated(request); 8 isAuthenticated(request);
8 const { emailSecret, email, passwordOne, passwordTwo } = args; 9 const { emailSecret, email, passwordOne, passwordTwo } = args;
9 const user = await prisma.user.findOne({ 10 const user = await prisma.user.findOne({
......