philippebeck/nens

View on GitHub
controller/AuthCtrl.js

Summary

Maintainability
A
1 hr
Test Coverage

Function forgotPass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
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 }
Severity: Minor
Found in controller/AuthCtrl.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status