fix(autobrrctl): change password for user (#11)

This commit is contained in:
Ludvig Lundgren 2021-08-19 20:41:32 +02:00 committed by GitHub
parent b8edeb5f31
commit eb5b040eeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

View file

@ -18,8 +18,9 @@ import (
const usage = `usage: autobrrctl --config path <action>
create-user <username> Create user
help Show this help message
create-user <username> Create user
change-password <username> Change password for user
help Show this help message
`
func init() {
@ -127,7 +128,7 @@ func readPassword() ([]byte, error) {
}
fmt.Printf("\n")
} else {
fmt.Fprintf(os.Stderr, "warning: Reading password from stdin.\n")
//fmt.Fprintf(os.Stderr, "warning: Reading password from stdin.\n")
scanner := bufio.NewScanner(os.Stdin)
if !scanner.Scan() {
if err := scanner.Err(); err != nil {