Skip to content
Snippets Groups Projects
Commit fa49bcaf authored by jacekk's avatar jacekk Committed by fguillot
Browse files

Fix password reset via CLI

parent 89e8e94b
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,7 @@ func resetPassword(store *storage.Storage) { ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment