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