fix: [user edit] required password change

- as reported by cert.pl
pull/32/head
iglocska 2020-11-05 10:21:57 +01:00
parent a7348e5266
commit 930d728a97
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 4 additions and 2 deletions

View File

@ -16,12 +16,14 @@
[
'field' => 'password',
'label' => __('Password'),
'type' => 'password'
'type' => 'password',
'required' => $this->request->getParam('action') === 'add' ? 'required' : false
],
[
'field' => 'confirm_password',
'label' => __('Confirm Password'),
'type' => 'password'
'type' => 'password',
'required' => $this->request->getParam('action') === 'add' ? 'required' : false
],
[
'field' => 'role_id',