htpasswd icon indicating copy to clipboard operation
htpasswd copied to clipboard

Password length isn't checked in interactive mode

Open diizzyy opened this issue 2 years ago • 3 comments

Using latest commit in master branch:

Preferably it should output an error and abort rather than accept zero input

go version go1.19.5 freebsd/amd64

diizzyy avatar Jan 17 '23 22:01 diizzyy

Could you please provide commad-line ?

mattn avatar Jan 18 '23 00:01 mattn

Sure, (just hit enter when asked to type password)

go-htpasswd -Bv foo foobar
New password:
Re-type new password:
Updating password for user foobar

diizzyy avatar Jan 18 '23 00:01 diizzyy

You can also omit -v switch and get the same result

Without any switch password is blank in passwordfile

diizzyy avatar Jan 18 '23 00:01 diizzyy