update comments for hashing password
This commit is contained in:
parent
99873efddb
commit
f4d0660d26
@ -22,6 +22,7 @@ export async function POST(request: Request) {
|
|||||||
return NextResponse.json({ message: "failed" });
|
return NextResponse.json({ message: "failed" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use Bcrypt to hash password
|
||||||
const hashedPassword = await hash(password, 10);
|
const hashedPassword = await hash(password, 10);
|
||||||
// console.log({message:'hash is', hashedPassword})
|
// console.log({message:'hash is', hashedPassword})
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user