Fix password reset via CLI

This commit is contained in:
jacekk 2021-05-03 00:36:53 +02:00 committed by fguillot
parent 89e8e94bf1
commit fa49bcaf8b

View file

@ -34,6 +34,7 @@ func resetPassword(store *storage.Storage) {
os.Exit(1) os.Exit(1)
} }
user.Password = password
if err := store.UpdateUser(user); err != nil { if err := store.UpdateUser(user); err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err) fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1) os.Exit(1)