whitef0x0/tellform

View on GitHub
app/controllers/users/users.authentication.server.controller.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function signup has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.signup = function(req, res) {
    // For security measures we remove the roles from the req.body object
    delete req.body.roles;

    // Init Variables
Severity: Minor
Found in app/controllers/users/users.authentication.server.controller.js - About 1 hr to fix

    Function generateAPIKey has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.generateAPIKey = function(req, res) {
        if (!req.isAuthenticated()){
            return res.status(400).send({
                message: 'User is not Authorized'
            });
    Severity: Minor
    Found in app/controllers/users/users.authentication.server.controller.js - About 1 hr to fix

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

      var config_nev = function () {
      
          nev.configure({
      
              verifyMailOptions: {
      Severity: Minor
      Found in app/controllers/users/users.authentication.server.controller.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status