We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fa4ba3 commit 38f265fCopy full SHA for 38f265f
src/PasswordGenerator.php
@@ -84,6 +84,8 @@ public function generate(PasswordGeneratorConfig $generatorConfig): string {
84
85
shuffle($password);
86
87
+ $password = $this->avoidConsecutiveCharacters($password);
88
+
89
if($generatorConfig->getAlwaysStartWithCharacter() &&
90
($lowerCount > 0 || $upperCount > 0)) {
91
foreach($password as $index => $char) {
@@ -104,8 +106,6 @@ public function generate(PasswordGeneratorConfig $generatorConfig): string {
104
106
}
105
107
108
- $password = $this->avoidConsecutiveCharacters($password);
-
109
return implode("", $password);
110
111
0 commit comments