Skip to content

Commit

Permalink
Resolve Issue #61
Browse files Browse the repository at this point in the history
  • Loading branch information
djmaze committed Mar 19, 2021
1 parent 46531c7 commit 2cf5fce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
4 changes: 2 additions & 2 deletions plugins/change-password/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
22 changes: 9 additions & 13 deletions plugins/change-password/js/ChangePasswordUserSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 2cf5fce

Please sign in to comment.