Page MenuHomeMusing Studio

Reset password via command-line
Closed, ResolvedPublic

Description

Overview

Support admin resetting user passwords.

Implementation

Add a --reset-pass flag that accepts a username. Prompt for a password (hiding the input), then hash that password and run

db.ChangePassphrase(u.ID, true, "", hashedPass)