mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
fix: cli password reset
This commit is contained in:
@@ -216,6 +216,7 @@ ${pwGenerated ? ` Generated password: ${password}` : ''}`);
|
||||
const adminUid = await getAdminUidOrFail();
|
||||
|
||||
if (password) {
|
||||
await user.setUserField(uid, 'password', '');
|
||||
await user.changePassword(adminUid, {
|
||||
newPassword: password,
|
||||
uid,
|
||||
|
||||
Reference in New Issue
Block a user