Better sanitize user input in inputInt

This commit is contained in:
2024-03-08 11:23:08 -05:00
parent 8e1987f250
commit f8bf12677f
4 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ func AddEntry(targetLocation string, hidePassword bool, entryType uint8) {
if entryType == 0 {
password = inputHidden("Password:")
} else {
password = offline.StringGen(inputInt("Password length:"), inputBinary("Generate a complex (special characters) password?"), 0.2)
password = offline.StringGen(inputInt("Password length:", -1), inputBinary("Generate a complex (special characters) password?"), 0.2)
}
url := input("URL:")