WRidder/react-spa

View on GitHub
server/src/controllers/auth.js

Summary

Maintainability
A
1 hr
Test Coverage

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

  login: function(req, res, next) {
    passport.authenticate('local-login', function (err, user) {
      if (user) {
        // Create session
        req.logIn(user, function(err) {
Severity: Minor
Found in server/src/controllers/auth.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status