File tree Expand file tree Collapse file tree 4 files changed +1107
-338
lines changed
Expand file tree Collapse file tree 4 files changed +1107
-338
lines changed Original file line number Diff line number Diff line change 11"use server"
22
3- import bcrypt from "bcrypt "
3+ import bcryptjs from "bcryptjs "
44import { signIn , signOut } from "configs/auth"
55import { Prisma } from "database"
66import { createUser } from "database/src/users/queries"
@@ -33,7 +33,7 @@ export const signUp = async (
3333 try {
3434 // hash password
3535 const { email, password } = data
36- const hashedPassword = await bcrypt . hash ( password , 10 )
36+ const hashedPassword = await bcryptjs . hash ( password , 10 )
3737
3838 await createUser ( {
3939 data : {
Original file line number Diff line number Diff line change @@ -31,13 +31,6 @@ export const {
3131 } ,
3232 } )
3333
34- // const user = await prisma.user.findUnique({
35- // where: {
36- // email: credentials.email,
37- // password: credentials.password,
38- // },
39- // })
40-
4134 if ( ! user ) {
4235 return null
4336 }
Original file line number Diff line number Diff line change 1212 "dependencies" : {
1313 "@auth/prisma-adapter" : " ^1.0.3" ,
1414 "@hookform/resolvers" : " ^3.3.1" ,
15+ "@react-email/components" : " ^0.0.25" ,
1516 "@tiptap/extension-blockquote" : " ^2.1.13" ,
1617 "@tiptap/extension-bold" : " ^2.1.13" ,
1718 "@tiptap/extension-bullet-list" : " ^2.1.13" ,
3132 "@tiptap/react" : " ^2.1.7" ,
3233 "@tiptap/starter-kit" : " ^2.1.7" ,
3334 "autoprefixer" : " ^10.4.15" ,
34- "bcrypt" : " ^5.1.1" ,
3535 "bcryptjs" : " ^2.4.3" ,
3636 "class-variance-authority" : " ^0.7.0" ,
3737 "clsx" : " ^2.0.0" ,
5858 "react-dom" : " ^18.2.0" ,
5959 "react-dropzone" : " ^14.2.3" ,
6060 "react-editor-js" : " ^2.1.0" ,
61+ "react-email" : " ^3.0.1" ,
6162 "react-hook-form" : " ^7.46.1" ,
6263 "react-html-parser" : " ^2.0.2" ,
6364 "react-select" : " ^5.8.0" ,
You can’t perform that action at this time.
0 commit comments