tieme-ndo/backend

View on GitHub
controllers/user/login.js

Summary

Maintainability
A
1 hr
Test Coverage

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

const login = async (req, res, next) => {
  try {
    let { username } = req.body;
    const { password } = req.body;
    username = username.toLowerCase();
Severity: Minor
Found in controllers/user/login.js - About 1 hr to fix

    Parsing error: Invalid ecmaVersion.
    Open

    const bcrypt = require('bcrypt');
    Severity: Minor
    Found in controllers/user/login.js by eslint

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

    There are no issues that match your filters.

    Category
    Status