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)
Support admin resetting user passwords.
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)
| rWF WriteFreely | |||
| rWF9016f8704157 Add --reset-pass option for admin pass reset | |||