Easybuoy/storemanager

View on GitHub
server/controllers/userController.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

  static signup(req, res) {
    const { errors, isValid } = usersValidation.validateSignupInput(req.body);

    // Check validation
    if (!isValid) {
Severity: Minor
Found in server/controllers/userController.js - About 1 hr to fix

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

      static login(req, res) {
        const { errors, isValid } = usersValidation.validateLoginInput(req.body);
    
        // Check validation
        if (!isValid) {
    Severity: Minor
    Found in server/controllers/userController.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status