Skip to content

Commit

Permalink
Improve UX by extending the pwd-hash tool output (#1949)
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer authored May 24, 2024
1 parent 59b54ce commit 3e60e2a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (
Name = "HORNET"

// Version of the app.
Version = "2.0.1"
Version = "2.0.2"
)

func App() *app.App {
Expand Down
20 changes: 19 additions & 1 deletion pkg/toolset/pwd_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,25 @@ func hashPasswordAndSalt(args []string) error {
return printJSON(result)
}

fmt.Printf("\nSuccess!\nYour hash: %x\nYour salt: %x\n", passwordKey, passwordSalt)
fmt.Printf(`
Success!
Please add the following lines to your inx-dashboard "config.json" file:
{
"auth": {
"passwordHash": "%x",
"passwordSalt": "%x"
}
}
You can also set the following environment variables in your node-docker-setup ".env" file:
DASHBOARD_PASSWORD=%x
DASHBOARD_SALT=%x
`, passwordKey, passwordSalt, passwordKey, passwordSalt)

return nil
}

0 comments on commit 3e60e2a

Please sign in to comment.