controllers/user/resetPassword.js
Function resetPassword
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const resetPassword = async (req, res, next) => {
try {
const userExist = await models.User.findOne({
username: req.user.username
}).lean();
Parsing error: Invalid ecmaVersion. Open
Open
/* eslint-disable max-len */
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/