Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/api/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,8 @@ module.exports = (db, server, userHandler, settingsHandler) => {
disabled: booleanSchema.required().description('If true then the user can not authenticate or receive any new mail'),
suspended: booleanSchema.required().description('If true then the user can not authenticate'),
lastPwnedCheck: Joi.date().description('Date when the last check of password against the Pwned passwords list was done'),
passwordPwned: booleanSchema.required().description('Specifies whether the user password has been found in Pwned passwords list')
passwordPwned: booleanSchema.required().description('Specifies whether the user password has been found in Pwned passwords list'),
requirePasswordChange: booleanSchema.required().description('Indicates if account password has been reset and should be replaced')
}).$_setFlag('objectName', 'GetUserResponse')
}
}
Expand Down Expand Up @@ -1151,7 +1152,8 @@ module.exports = (db, server, userHandler, settingsHandler) => {
disabled: !!userData.disabled,
suspended: !!userData.suspended,
lastPwnedCheck: userData.lastPwnedCheck,
passwordPwned: !!userData.passwordPwned
passwordPwned: !!userData.passwordPwned,
requirePasswordChange: !!userData.requirePasswordChange
})
);
})
Expand Down