From 9c2937cb7e3ecf5d1ebac2fd361821f62d5fcbaf Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 24 Nov 2023 13:54:38 +0800 Subject: [PATCH] * user: bind the change event on formPanel widget instead of on password widget. --- module/user/ui/edit.html.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/user/ui/edit.html.php b/module/user/ui/edit.html.php index 69261a75d9..bac895e827 100644 --- a/module/user/ui/edit.html.php +++ b/module/user/ui/edit.html.php @@ -48,6 +48,7 @@ formPanel on::change('input[name=type]', 'changeType'), on::click('button[type="submit"]', 'computePassword'), on::change('input[name^=visions]', 'changeVision'), + on::change('#password1, #password, #verifyPassword', 'changePassword'), formRow ( formGroup @@ -183,14 +184,12 @@ formPanel ( formGroup ( - on::change('password1Change'), set::width('1/2'), set::label($lang->user->password), password(set::checkStrength(true)) ), formGroup ( - on::change('password2Change'), set::width('1/2'), set::label($lang->user->password2), set::control('password'),