Skip to content

Node.js based forum software built for the modern web

fix: cli password reset

Barış Soner Uşaklı71e34be5656c
diff --git a/src/cli/user.js b/src/cli/user.js
index eda3502133..097ff8bd3b 100644
--- a/src/cli/user.js
+++ b/src/cli/user.js
@@ -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,