v1.18.x
psychobunny 10 years ago
parent 4b0f50f57e
commit a990e9c3bf

@ -49,8 +49,8 @@
"nodebb-plugin-spam-be-gone": "0.4.1",
"nodebb-rewards-essentials": "0.0.3",
"nodebb-theme-lavender": "1.0.49",
"nodebb-theme-persona": "2.0.12",
"nodebb-theme-vanilla": "3.0.6",
"nodebb-theme-persona": "2.0.13",
"nodebb-theme-vanilla": "3.0.7",
"nodebb-widget-essentials": "1.0.4",
"npm": "^2.1.4",
"passport": "^0.2.1",

@ -110,6 +110,9 @@ Controllers.register = function(req, res, next) {
}
},
function(next) {
plugins.fireHook('filter:parse.post', {postData: {content: meta.config.termsOfUse}}, next);
},
function(tos, next) {
var loginStrategies = require('../routes/authentication').getLoginStrategies();
var data = {
'register_window:spansize': loginStrategies.length ? 'col-md-6' : 'col-md-12',
@ -121,7 +124,7 @@ Controllers.register = function(req, res, next) {
data.minimumUsernameLength = meta.config.minimumUsernameLength;
data.maximumUsernameLength = meta.config.maximumUsernameLength;
data.minimumPasswordLength = meta.config.minimumPasswordLength;
data.termsOfUse = meta.config.termsOfUse;
data.termsOfUse = tos.postData.content;
data.breadcrumbs = helpers.buildBreadcrumbs([{text: '[[register:register]]'}]);
data.regFormEntry = [];
data.error = req.flash('error')[0];

Loading…
Cancel
Save