fix(auth): remove redundant truthy check in hasPassword condition
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user