|
|
@ -209,7 +209,13 @@ Controllers.register = function(req, res, next) {
|
|
|
|
data.minimumPasswordLength = meta.config.minimumPasswordLength;
|
|
|
|
data.minimumPasswordLength = meta.config.minimumPasswordLength;
|
|
|
|
data.termsOfUse = meta.config.termsOfUse;
|
|
|
|
data.termsOfUse = meta.config.termsOfUse;
|
|
|
|
|
|
|
|
|
|
|
|
res.render('register', data);
|
|
|
|
data.captcha = null;
|
|
|
|
|
|
|
|
plugins.fireHook('filter:register.build', req, res, data, function(err, data) {
|
|
|
|
|
|
|
|
if (err && process.env === 'development') {
|
|
|
|
|
|
|
|
winston.warn(JSON.stringify(err));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
res.render('register', data);
|
|
|
|
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|