fix
This commit is contained in:
5
main.go
5
main.go
@@ -26,6 +26,8 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
for {
|
||||
|
||||
// Fetch user input
|
||||
fmt.Print("Enter your password: ")
|
||||
fmt.Scanf("%s", &input)
|
||||
@@ -35,8 +37,7 @@ func main() {
|
||||
message, err := password.Check(input, commonWords, commonPasswords)
|
||||
if err != nil {
|
||||
fmt.Printf("ERROR: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
fmt.Println(message)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user