fix(auth): remove redundant truthy check in hasPassword condition

This commit is contained in:
2026-04-25 09:06:16 -04:00
parent 3b442f2cf5
commit 03b24ce320
+1 -1
View File
@@ -837,7 +837,7 @@ async function handleAdminCreateUser(request) {
} }
const userId = generateId(); const userId = generateId();
const hasPassword = password && typeof password === 'string' && password.length > 0; const hasPassword = typeof password === 'string' && password.length > 0;
const user = await create('zen_auth_users', { const user = await create('zen_auth_users', {
id: userId, id: userId,