|
@ -289,7 +289,7 @@ class UserService extends SiteService { |
|
|
updateOp.$set.password = cryptoService.maskPassword(updateOp.$set.passwordSalt, userDefinition.password); |
|
|
updateOp.$set.password = cryptoService.maskPassword(updateOp.$set.passwordSalt, userDefinition.password); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
updateOp.$set.theme = userDefinition.theme || 'dtp-light', |
|
|
updateOp.$set.theme = userDefinition.theme || 'dtp-light'; |
|
|
|
|
|
|
|
|
this.log.info('updating user settings', { userId: user._id }); |
|
|
this.log.info('updating user settings', { userId: user._id }); |
|
|
await User.updateOne({ _id: user._id }, updateOp); |
|
|
await User.updateOne({ _id: user._id }, updateOp); |
|
|