fix: #7493, adding robots noindex meta tag to compose and reset routes

v1.18.x
Julian Lam 6 years ago
parent 86e1cdd541
commit 6415ba82c4

@ -9,6 +9,12 @@ var topics = require('../topics');
var helpers = require('./helpers');
exports.get = function (req, res, callback) {
res.locals.metaTags = {
...res.locals.metaTags,
name: 'robots',
content: 'noindex',
};
async.waterfall([
function (next) {
plugins.fireHook('filter:composer.build', {

@ -40,6 +40,12 @@ Controllers.errors = require('./errors');
Controllers.composer = require('./composer');
Controllers.reset = function (req, res, next) {
res.locals.metaTags = {
...res.locals.metaTags,
name: 'robots',
content: 'noindex',
};
const renderReset = function (code, valid) {
res.render('reset_code', {
valid: valid,

Loading…
Cancel
Save