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

This commit is contained in:
Julian Lam
2019-03-27 17:10:56 -04:00
parent 86e1cdd541
commit 6415ba82c4
2 changed files with 12 additions and 0 deletions

View File

@@ -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', {

View File

@@ -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,