Skip to content

Commit 3e60e2a

Browse files
authored
Improve UX by extending the pwd-hash tool output (#1949)
1 parent 59b54ce commit 3e60e2a

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

components/app/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var (
3434
Name = "HORNET"
3535

3636
// Version of the app.
37-
Version = "2.0.1"
37+
Version = "2.0.2"
3838
)
3939

4040
func App() *app.App {

pkg/toolset/pwd_hash.go

+19-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,25 @@ func hashPasswordAndSalt(args []string) error {
140140
return printJSON(result)
141141
}
142142

143-
fmt.Printf("\nSuccess!\nYour hash: %x\nYour salt: %x\n", passwordKey, passwordSalt)
143+
fmt.Printf(`
144+
Success!
145+
146+
Please add the following lines to your inx-dashboard "config.json" file:
147+
148+
{
149+
"auth": {
150+
"passwordHash": "%x",
151+
"passwordSalt": "%x"
152+
}
153+
}
154+
155+
156+
You can also set the following environment variables in your node-docker-setup ".env" file:
157+
158+
DASHBOARD_PASSWORD=%x
159+
DASHBOARD_SALT=%x
160+
161+
`, passwordKey, passwordSalt, passwordKey, passwordSalt)
144162

145163
return nil
146164
}

0 commit comments

Comments
 (0)