diff --git a/src/lib/actions/user.ts b/src/lib/actions/user.ts index 71d11e0..f1ce3f9 100644 --- a/src/lib/actions/user.ts +++ b/src/lib/actions/user.ts @@ -43,7 +43,7 @@ export async function updateUser( const { name, email, password } = validated.data; try { - if (password) { + if (password && password.length > 0) { // In a real application, hash the password const stmt = db.prepare( 'UPDATE users SET name = ?, email = ?, password = ? WHERE id = ?'