BrownPaperBag/duffel-auth

View on GitHub
lib/controllers/admin/users/post.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function exports has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(parameters) {
  var app = parameters.app;

  app.protect.post('/users/admin/:id', 'manage-users', function(req, res, next) {
    if (req.params.id == 'create') {
Severity: Major
Found in lib/controllers/admin/users/post.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status