statebus 6.1.26 → 6.1.27
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/package.json +1 -1
- package/server.js +3 -3
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -2021,12 +2021,12 @@ function import_server (bus, options)
|
|
|
2021
2021
|
// }
|
|
2022
2022
|
|
|
2023
2023
|
// For anything else, go ahead and add it to the user object
|
|
2024
|
-
var
|
|
2024
|
+
var protected_fields = {key:1, name:1, /*pic:1,*/ pass:1}
|
|
2025
2025
|
for (var k in o)
|
|
2026
|
-
if (!
|
|
2026
|
+
if (!protected_fields.hasOwnProperty(k))
|
|
2027
2027
|
u[k] = o[k]
|
|
2028
2028
|
for (var k in u)
|
|
2029
|
-
if (!
|
|
2029
|
+
if (!protected_fields.hasOwnProperty(k) && !o.hasOwnProperty(k))
|
|
2030
2030
|
delete u[k]
|
|
2031
2031
|
|
|
2032
2032
|
master.save(u)
|