mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 07:57:02 +03: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
|
const
|
||||||
NAME = 'Change Password',
|
NAME = 'Change Password',
|
||||||
VERSION = '2.16.2',
|
VERSION = '2.16.3',
|
||||||
RELEASE = '2022-09-20',
|
RELEASE = '2022-10-14',
|
||||||
REQUIRED = '2.12.0',
|
REQUIRED = '2.12.0',
|
||||||
CATEGORY = 'Security',
|
CATEGORY = 'Security',
|
||||||
DESCRIPTION = 'Extension to allow users to change their passwords';
|
DESCRIPTION = 'Extension to allow users to change their passwords';
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,9 @@
|
||||||
onBuild(dom) {
|
onBuild(dom) {
|
||||||
let input = dom.querySelector('.new-password'),
|
let input = dom.querySelector('.new-password'),
|
||||||
meter = dom.querySelector('.new-password-meter');
|
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() {
|
onHide() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue