Fix issue with maddyctl hash

--argon2-time set the memory instead of time due to a typo
This commit is contained in:
bs2kbs2k
2022-06-22 11:39:13 +00:00
committed by GitHub
parent ccaad967f2
commit 6b6802bf2b

View File

@@ -65,7 +65,7 @@ func hashCommand(ctx *cli.Context) error {
opts.Argon2Memory = uint32(ctx.Int("argon2-memory"))
}
if ctx.IsSet("argon2-time") {
opts.Argon2Memory = uint32(ctx.Int("argon2-time"))
opts.Argon2Time = uint32(ctx.Int("argon2-time"))
}
if ctx.IsSet("argon2-threads") {
opts.Argon2Threads = uint8(ctx.Int("argon2-threads"))