From 930d728a97e6ff0f58c6cfbd7ee6691a9955273a Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 5 Nov 2020 10:21:57 +0100 Subject: [PATCH] fix: [user edit] required password change - as reported by cert.pl --- templates/Users/add.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/Users/add.php b/templates/Users/add.php index 169ac01..73b430a 100644 --- a/templates/Users/add.php +++ b/templates/Users/add.php @@ -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',