app/controllers/users/users.authentication.server.controller.js
Function signup
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.signup = function(req, res) {
// For security measures we remove the roles from the req.body object
delete req.body.roles;
// Init Variables
Function generateAPIKey
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.generateAPIKey = function(req, res) {
if (!req.isAuthenticated()){
return res.status(400).send({
message: 'User is not Authorized'
});
Function config_nev
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var config_nev = function () {
nev.configure({
verifyMailOptions: {