commit 0e2e7db94c13ed5d02f8f04f16f94ec947553605
parent a1294fc22219ed4c69ffd37adbc2a55271a944bb
Author: Sean Enck <sean@ttypty.com>
Date: Mon, 9 Dec 2024 18:38:52 -0500
this is already checked
Diffstat:
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/internal/app/pwgen.go b/internal/app/pwgen.go
@@ -27,9 +27,6 @@ func GeneratePassword(cmd CommandOptions) error {
if err != nil {
return err
}
- if length < 1 {
- return fmt.Errorf("word count must be >= 1")
- }
tmplString := config.EnvPasswordGenTemplate.Get()
wordList := config.EnvPasswordGenWordList.Get()
if len(wordList) == 0 {
diff --git a/internal/config/vars.go b/internal/config/vars.go
@@ -93,8 +93,7 @@ var (
key: totpCategory + "TIMEOUT",
description: "Time, in seconds, to show a TOTP token before automatically exiting.",
}),
- short: "max totp time",
- canZero: false,
+ short: "max totp time",
})
// EnvTOTPEntry is the leaf token to use to store TOTP tokens
EnvTOTPEntry = environmentRegister(EnvironmentString{