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
1 changed files with 1 additions and 0 deletions

View File

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