From f612ebaceb296938056b829daab41dc40b784930 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 3 May 2015 10:41:44 +0200 Subject: [PATCH] Fixed godoc --- lib/generator.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/generator.go b/lib/generator.go index b8bc13e..d32228a 100644 --- a/lib/generator.go +++ b/lib/generator.go @@ -85,9 +85,10 @@ func (s *SecurePassword) GeneratePassword(length int, special bool) (string, err // CheckPasswordSecurity executes three checks to ensure the passwords // meet the security considerations in this package: -// - The password may not contain pattern found on the keyboard or in alphabet -// - The password must have 3 or 4 different character groups in it -// - The password may not have repeating characters +// +// 1. The password may not contain pattern found on the keyboard or in alphabet +// 2. The password must have 3 or 4 different character groups in it +// 3. The password may not have repeating characters func (s *SecurePassword) CheckPasswordSecurity(password string, needsSpecialCharacters bool) bool { return !s.hasInsecurePattern(password) && s.matchesBasicSecurity(password, needsSpecialCharacters) &&