@iobroker/socket-classes 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -69,6 +69,9 @@ io.close();
69
69
  -->
70
70
 
71
71
  ## Changelog
72
+ ### 0.4.1 (2022-05-23)
73
+ * (bluefox) Corrected changePassword command for admin
74
+
72
75
  ### 0.4.0 (2022-05-19)
73
76
  * (bluefox) Added support of socket.io 4.x
74
77
 
@@ -568,11 +568,9 @@ class SocketCommandsAdmin extends SocketCommands {
568
568
  }
569
569
  };
570
570
  this.commands['changePassword'] = (socket, user, pass, callback) => {
571
- if (this.__updateSession(socket)) {
572
- if (user === socket._acl.user || this._checkPermissions(socket, 'changePassword', callback, user)) {
573
- this.adapter.setPassword(user, pass, {user: socket._acl.user}, (err, ...args) =>
574
- SocketCommands._fixCallback(callback, err, ...args));
575
- }
571
+ if (user === socket._acl.user || this._checkPermissions(socket, 'changePassword', callback, user)) {
572
+ this.adapter.setPassword(user, pass, {user: socket._acl.user}, (err, ...args) =>
573
+ SocketCommands._fixCallback(callback, err, ...args));
576
574
  }
577
575
  };
578
576
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/socket-classes",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "ioBroker server-side web sockets",
5
5
  "author": {
6
6
  "name": "bluefox",