Skip to content

Commit

Permalink
Tell 1Password to generate a bit longer and stronger password by default
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed Mar 14, 2023
1 parent 201b8fe commit ac511de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions site/app/Form/ChangePasswordFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function create(callable $onSuccess): Form
$form = $this->factory->create();
$form->addText('username')
->setDefaultValue($this->authenticator->getIdentityByUser($this->user)->username)
->setHtmlAttribute('passwordrules', 'minlength: 42; required: lower; required: upper; required: digit; required: [ !#$%&*+,./:;=?@_~];')
->setHtmlAttribute('autocomplete', 'username')
->setHtmlAttribute('class', 'hidden');
$form->addPassword('password', 'Současné heslo:')
Expand Down

0 comments on commit ac511de

Please sign in to comment.