From 56806076a19b28d68c5c9448a9e2aadb13faabe4 Mon Sep 17 00:00:00 2001 From: Leon Serfaty G Date: Fri, 18 Jul 2025 02:54:06 +0000 Subject: [PATCH] srtill admin cant change password, what other auth method could we use? --- src/lib/actions/user.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/actions/user.ts b/src/lib/actions/user.ts index c2a947c..298764b 100644 --- a/src/lib/actions/user.ts +++ b/src/lib/actions/user.ts @@ -57,7 +57,6 @@ export async function updateUser( const userId = session.user.id; try { - // Check if another user with the same email exists const existingUserStmt = db.prepare('SELECT id FROM users WHERE email = ? AND id != ?'); const existingUser = existingUserStmt.get(email, userId); @@ -66,7 +65,6 @@ export async function updateUser( } if (password && password.trim().length > 0) { - // In a real app, you would hash the password here const stmt = db.prepare( 'UPDATE users SET name = ?, email = ?, password = ? WHERE id = ?' );