Skip to content

Commit a3bc5d9

Browse files
committed
Implement Password Policy in setup Guide
1 parent 1ec7a38 commit a3bc5d9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

modules/setup/application/forms/AdminAccountPage.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
use Exception;
77
use Icinga\Application\Config;
8+
use Icinga\Authentication\PasswordPolicyHelper;
89
use Icinga\Authentication\User\ExternalBackend;
910
use Icinga\Authentication\User\UserBackend;
1011
use Icinga\Authentication\User\DbUserBackend;
@@ -228,6 +229,8 @@ public function createElements(array $formData)
228229
'autocomplete' => 'new-password'
229230
)
230231
);
232+
PasswordPolicyHelper::applyPasswordPolicy($this, 'new_user_password');
233+
231234
$this->addElement(
232235
'password',
233236
'new_user_2ndpass',

0 commit comments

Comments
 (0)