This commit is contained in:
darwincereska
2026-04-01 21:42:00 -04:00
parent 042bfac734
commit 757758293f

23
main.go
View File

@@ -26,17 +26,18 @@ func main() {
os.Exit(1) os.Exit(1)
} }
// Fetch user input for {
fmt.Print("Enter your password: ")
fmt.Scanf("%s", &input)
fmt.Println(input)
// Check users password // Fetch user input
message, err := password.Check(input, commonWords, commonPasswords) fmt.Print("Enter your password: ")
if err != nil { fmt.Scanf("%s", &input)
fmt.Printf("ERROR: %v\n", err) fmt.Println(input)
os.Exit(1)
// Check users password
message, err := password.Check(input, commonWords, commonPasswords)
if err != nil {
fmt.Printf("ERROR: %v\n", err)
}
fmt.Println(message)
} }
fmt.Println(message)
} }