Nanocloud/nanocloud

View on GitHub
api/controllers/PendingUserController.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function create has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  create(req, res) {
    var user = req.body.data.attributes;

    user.id = uuid.v4();
    user.isAdmin = false;
Severity: Major
Found in api/controllers/PendingUserController.js - About 2 hrs to fix

    Function update has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      update: function(req, res) {
        var pendingUserToken = req.params.id;
        var expirationDays;
    
        ConfigService.get('expirationDate')
    Severity: Minor
    Found in api/controllers/PendingUserController.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status