Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password length isn't checked in interactive mode #2

Open
diizzyy opened this issue Jan 17, 2023 · 3 comments
Open

Password length isn't checked in interactive mode #2

diizzyy opened this issue Jan 17, 2023 · 3 comments

Comments

@diizzyy
Copy link

diizzyy commented Jan 17, 2023

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

@mattn
Copy link
Owner

mattn commented Jan 18, 2023

Could you please provide commad-line ?

@diizzyy
Copy link
Author

diizzyy commented Jan 18, 2023

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
Copy link
Author

diizzyy commented Jan 18, 2023

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

Without any switch password is blank in passwordfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants