marusoft/Auto-Mart

View on GitHub
server/middlewares/usersValidator.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function ValidateUserSignUpInput has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static async ValidateUserSignUpInput(req, res, next) {
    let {
      email, first_name, last_name, password, address,
    } = req.body;

Severity: Minor
Found in server/middlewares/usersValidator.js - About 1 hr to fix

    Function ValidateUserSignInInput has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      static async ValidateUserSignInInput(req, res, next) {
        let { email, password } = req.body;
        const constraint = {
          email: 'required|email',
          password: 'required',
    Severity: Minor
    Found in server/middlewares/usersValidator.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status