:updated password reset

This commit is contained in:
polaris
2024-06-29 15:51:29 -04:00
parent 4fd54e5b4a
commit 3e770e56b7

View File

@ -1,7 +1,7 @@
"use server";
import { getAuth } from "@/auth/queries/getauth";
import { artemis, lachesis } from "@/lib/prisma";
import { artemis, daphnis } from "@/lib/prisma";
import { Argon2id } from "oslo/password";
export const updatePassword = async (
@ -22,7 +22,7 @@ export const updatePassword = async (
try {
// Fetch user from database
const existingUser = await lachesis.user.findUnique({
const existingUser = await daphnis.user.findUnique({
where: {
id: user.id,
},
@ -46,7 +46,7 @@ export const updatePassword = async (
const hashedPassword = await new Argon2id().hash(newPassword);
// Update user's password
await lachesis.user.update({
await daphnis.user.update({
where: {
id: user.id,
},