Skip to content

Commit

Permalink
Fix required length for password (#82)
Browse files Browse the repository at this point in the history
Should be 10; was 11. Fixes #79 .
  • Loading branch information
yaronkoren committed May 22, 2023
1 parent 57e3620 commit fb6d00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mediawiki/mediawiki.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func promptUserPassword(userValue, passwordValue string) (string, string, error)
}

func passwordCheck(admin, password string) error {
if len(password) <= 10 {
if len(password) < 10 {
logging.Fatal(fmt.Errorf("Password must be at least 10 characters long "))
} else if strings.Contains(password, admin) || strings.Contains(admin, password) {
logging.Fatal(fmt.Errorf("Password should not be same as admin name"))
Expand Down

0 comments on commit fb6d00f

Please sign in to comment.