@ -118,7 +118,7 @@ Controllers.register = function(req, res, next) {
data.error = req.flash('error')[0];
plugins.fireHook('filter:register.build', {req: req, res: res, templateData: data}, function(err, data) {
if (err && process.env === 'development') {
if (err && global.env === 'development') {
winston.warn(JSON.stringify(err));
return next(err);
}