Resolve Issue #61

This commit is contained in:
djmaze 2021-03-19 10:11:30 +01:00
parent 46531c7831
commit 2cf5fce562
2 changed files with 11 additions and 15 deletions

View file

@ -6,8 +6,8 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
{ {
const const
NAME = 'Change Password', NAME = 'Change Password',
VERSION = '2.0', VERSION = '2.1',
RELEASE = '2021-03-15', RELEASE = '2021-03-18',
REQUIRED = '2.4.0', REQUIRED = '2.4.0',
CATEGORY = 'Security', CATEGORY = 'Security',
DESCRIPTION = 'This plugin allows you to change passwords of email accounts'; DESCRIPTION = 'This plugin allows you to change passwords of email accounts';

View file

@ -34,19 +34,15 @@
class ChangePasswordUserSettings class ChangePasswordUserSettings
{ {
constructor() { constructor() {
ko.addObservablesTo(this, { this.changeProcess = ko.observable(false);
changeProcess: false, this.errorDescription = ko.observable('');
this.passwordMismatch = ko.observable(false);
errorDescription: '', this.passwordUpdateError = ko.observable(false);
passwordMismatch: false, this.passwordUpdateSuccess = ko.observable(false);
passwordUpdateError: false, this.currentPassword = ko.observable('');
passwordUpdateSuccess: false, this.currentPasswordError = ko.observable(false);
this.newPassword = ko.observable('');
currentPassword: '', this.newPassword2 = ko.observable('');
currentPasswordError: false,
newPassword: '',
newPassword2: '',
});
this.currentPassword.subscribe(() => this.resetUpdate(true)); this.currentPassword.subscribe(() => this.resetUpdate(true));
this.newPassword.subscribe(() => this.resetUpdate()); this.newPassword.subscribe(() => this.resetUpdate());