mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-08 14:14:26 +08:00
Resolve Issue #61
This commit is contained in:
parent
46531c7831
commit
2cf5fce562
2 changed files with 11 additions and 15 deletions
|
@ -6,8 +6,8 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
{
|
||||
const
|
||||
NAME = 'Change Password',
|
||||
VERSION = '2.0',
|
||||
RELEASE = '2021-03-15',
|
||||
VERSION = '2.1',
|
||||
RELEASE = '2021-03-18',
|
||||
REQUIRED = '2.4.0',
|
||||
CATEGORY = 'Security',
|
||||
DESCRIPTION = 'This plugin allows you to change passwords of email accounts';
|
||||
|
|
|
@ -34,19 +34,15 @@
|
|||
class ChangePasswordUserSettings
|
||||
{
|
||||
constructor() {
|
||||
ko.addObservablesTo(this, {
|
||||
changeProcess: false,
|
||||
|
||||
errorDescription: '',
|
||||
passwordMismatch: false,
|
||||
passwordUpdateError: false,
|
||||
passwordUpdateSuccess: false,
|
||||
|
||||
currentPassword: '',
|
||||
currentPasswordError: false,
|
||||
newPassword: '',
|
||||
newPassword2: '',
|
||||
});
|
||||
this.changeProcess = ko.observable(false);
|
||||
this.errorDescription = ko.observable('');
|
||||
this.passwordMismatch = ko.observable(false);
|
||||
this.passwordUpdateError = ko.observable(false);
|
||||
this.passwordUpdateSuccess = ko.observable(false);
|
||||
this.currentPassword = ko.observable('');
|
||||
this.currentPasswordError = ko.observable(false);
|
||||
this.newPassword = ko.observable('');
|
||||
this.newPassword2 = ko.observable('');
|
||||
|
||||
this.currentPassword.subscribe(() => this.resetUpdate(true));
|
||||
this.newPassword.subscribe(() => this.resetUpdate());
|
||||
|
|
Loading…
Add table
Reference in a new issue