This commit is contained in:
the-djmaze 2022-10-14 19:53:14 +02:00
parent 187dfcd126
commit 0f3d8e66df
2 changed files with 5 additions and 3 deletions

View file

@ -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';

View file

@ -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() {