app/controllers/users.js
Function Users
has 116 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Users = function () {
this.before(requireAuth, {
except: ['add', 'create', 'activate']
});
Function create
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.create = function (req, resp, params) {
var self = this
, user = geddy.model.User.create(params)
, sha;