api/controllers/PendingUserController.js
Function create
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create(req, res) {
var user = req.body.data.attributes;
user.id = uuid.v4();
user.isAdmin = false;
Function update
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function(req, res) {
var pendingUserToken = req.params.id;
var expirationDays;
ConfigService.get('expirationDate')