Reduce bcrypt iterations from 15 to 12 (common for 2025 processors)

This commit is contained in:
Nicolas
2025-04-28 12:12:56 +02:00
parent c00b64d666
commit b5e96e02c3
4 changed files with 72 additions and 72 deletions

View File

@@ -17,7 +17,7 @@ export const resetPassword = async (email: string) => {
}
const password = Math.random().toString(36).slice(-8);
const hashedPassword = await bcrypt.hash(password, 15);
const hashedPassword = await bcrypt.hash(password, 12);
await prisma.user.update({
where: {
email,