From 0f3d8e66dffde6f358074a0e5c73890ec57c6f0b Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 14 Oct 2022 19:53:14 +0200 Subject: [PATCH] Resolve #553 --- plugins/change-password/index.php | 4 ++-- plugins/change-password/js/ChangePasswordUserSettings.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/change-password/index.php b/plugins/change-password/index.php index 5aa2567ea..1a1e20b95 100644 --- a/plugins/change-password/index.php +++ b/plugins/change-password/index.php @@ -6,8 +6,8 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin { const NAME = 'Change Password', - VERSION = '2.16.2', - RELEASE = '2022-09-20', + VERSION = '2.16.3', + RELEASE = '2022-10-14', REQUIRED = '2.12.0', CATEGORY = 'Security', DESCRIPTION = 'Extension to allow users to change their passwords'; diff --git a/plugins/change-password/js/ChangePasswordUserSettings.js b/plugins/change-password/js/ChangePasswordUserSettings.js index 0a6df3d2b..05d5dcafa 100644 --- a/plugins/change-password/js/ChangePasswordUserSettings.js +++ b/plugins/change-password/js/ChangePasswordUserSettings.js @@ -111,7 +111,9 @@ onBuild(dom) { let input = dom.querySelector('.new-password'), meter = dom.querySelector('.new-password-meter'); - input && meter && input.addEventListener('input',() => meter.value = getPassStrength(input.value)); + if (input && meter) { + this.newPassword.subscribe(value => meter.value = getPassStrength(value)); + } } onHide() {