fix: cli password reset

This commit is contained in:
Barış Soner Uşaklı
2021-11-22 22:20:01 -05:00
parent f11bc33ac5
commit 71e34be565

View File

@@ -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,