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