tieme-ndo/backend

View on GitHub
controllers/user/resetPassword.js

Summary

Maintainability
A
1 hr
Test Coverage

Function resetPassword has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const resetPassword = async (req, res, next) => {
  try {
    const userExist = await models.User.findOne({
      username: req.user.username
    }).lean();
Severity: Minor
Found in controllers/user/resetPassword.js - About 1 hr to fix

    Parsing error: Invalid ecmaVersion.
    Open

    /* eslint-disable max-len */
    Severity: Minor
    Found in controllers/user/resetPassword.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status