Nanocloud/nanocloud

View on GitHub
api/controllers/Reset-passwordController.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

  create: function(req, res) {
    const ResetPassword = global['Reset-password'];

    var token;
    let user = null;
Severity: Major
Found in api/controllers/Reset-passwordController.js - About 2 hrs to fix

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

      update: function(req, res) {
        const ResetPassword = global['Reset-password'];
    
        var token    = req.params.id;
        var dataReq  = req.body.data.attributes;
    Severity: Minor
    Found in api/controllers/Reset-passwordController.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status