controller/AuthCtrl.js
Function forgotPass
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.forgotPass = async (req, res, next) => {
const { AUTH_MESSAGE, CHECK_EMAIL, DISPO_EMAIL_REF, USER_NOT_PASS, USER_NOT_UPDATED } = process.env;
form.parse(req, async (err, fields) => {
if (err) { next(err); return }