fix
This commit is contained in:
23
main.go
23
main.go
@@ -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)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user