v1.18.x
pichalite 8 years ago
parent 4c89497cc4
commit d4de345e87

@ -36,12 +36,15 @@ editController.get = function (req, res, callback) {
}); });
userData.title = '[[pages:account/edit, ' + userData.username + ']]'; userData.title = '[[pages:account/edit, ' + userData.username + ']]';
userData.breadcrumbs = helpers.buildBreadcrumbs([{ userData.breadcrumbs = helpers.buildBreadcrumbs([
text: userData.username, {
url: '/user/' + userData.userslug, text: userData.username,
}, { url: '/user/' + userData.userslug,
text: '[[user:edit]]', },
}]); {
text: '[[user:edit]]',
},
]);
userData.editButtons = []; userData.editButtons = [];
plugins.fireHook('filter:user.account.edit', userData, function (err, userData) { plugins.fireHook('filter:user.account.edit', userData, function (err, userData) {
@ -81,15 +84,19 @@ function renderRoute(name, req, res, next) {
} }
userData.title = '[[pages:account/edit/' + name + ', ' + userData.username + ']]'; userData.title = '[[pages:account/edit/' + name + ', ' + userData.username + ']]';
userData.breadcrumbs = helpers.buildBreadcrumbs([{ userData.breadcrumbs = helpers.buildBreadcrumbs([
text: userData.username, {
url: '/user/' + userData.userslug, text: userData.username,
}, { url: '/user/' + userData.userslug,
text: '[[user:edit]]', },
url: '/user/' + userData.userslug + '/edit', {
}, { text: '[[user:edit]]',
text: '[[user:' + name + ']]', url: '/user/' + userData.userslug + '/edit',
}]); },
{
text: '[[user:' + name + ']]',
},
]);
res.render('account/edit/' + name, userData); res.render('account/edit/' + name, userData);
}); });

@ -89,12 +89,15 @@ Controllers.reset = function (req, res, next) {
displayExpiryNotice: req.session.passwordExpired, displayExpiryNotice: req.session.passwordExpired,
code: req.params.code, code: req.params.code,
minimumPasswordLength: parseInt(meta.config.minimumPasswordLength, 10), minimumPasswordLength: parseInt(meta.config.minimumPasswordLength, 10),
breadcrumbs: helpers.buildBreadcrumbs([{ breadcrumbs: helpers.buildBreadcrumbs([
text: '[[reset_password:reset_password]]', {
url: '/reset', text: '[[reset_password:reset_password]]',
}, { url: '/reset',
text: '[[reset_password:update_password]]', },
}]), {
text: '[[reset_password:update_password]]',
},
]),
title: '[[pages:reset]]', title: '[[pages:reset]]',
}); });

Loading…
Cancel
Save