|
|
@@ -1004,16 +1004,6 @@ module.exports = (crowi) => {
|
|
|
* user:
|
|
|
* type: string
|
|
|
* description: user id for send new password email
|
|
|
- * responses:
|
|
|
- * 200:
|
|
|
- * description: success send new password email
|
|
|
- * content:
|
|
|
- * application/json:
|
|
|
- * schema:
|
|
|
- * properties:
|
|
|
- * failedToSendEmail:
|
|
|
- * type: object
|
|
|
- * description: email and reasons for new password email sending failure
|
|
|
*/
|
|
|
router.put('/reset-password-email', loginRequiredStrictly, adminRequired, addActivity, async(req, res) => {
|
|
|
const { id } = req.body;
|
|
|
@@ -1029,7 +1019,6 @@ module.exports = (crowi) => {
|
|
|
};
|
|
|
|
|
|
await sendEmailByUser(userInfo);
|
|
|
- return res.apiv3({ user });
|
|
|
}
|
|
|
catch (err) {
|
|
|
const msg = err.message;
|