mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-02 21:12:02 +08:00
Resolve #553
This commit is contained in:
parent
187dfcd126
commit
0f3d8e66df
2 changed files with 5 additions and 3 deletions
|
@ -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';
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue