From ac511dea83f6a39c143ab48639bc1f2f96027543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Tue, 14 Mar 2023 03:58:47 +0100 Subject: [PATCH] Tell 1Password to generate a bit longer and stronger password by default --- site/app/Form/ChangePasswordFormFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/site/app/Form/ChangePasswordFormFactory.php b/site/app/Form/ChangePasswordFormFactory.php index 4d5978397..ee32691c2 100644 --- a/site/app/Form/ChangePasswordFormFactory.php +++ b/site/app/Form/ChangePasswordFormFactory.php @@ -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:')