diff --git a/lib/utils.js b/lib/utils.js index 32b8863760..0ff935f1e3 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -38,8 +38,12 @@ exports.addNunjucksFilters = function (env) { exports.basicAuth = function (username, password) { return function (req, res, next) { if (!username || !password) { + var docsUrl = 'https://govuk-prototype-kit.herokuapp.com/docs/publishing-on-heroku#6-set-a-username-and-password' console.log('Username or password is not set.') - return res.send('
Username or password not set. See guidance for setting these.
') + return res.send('All prototypes should be protected from accidental discovery by the public when published online.
' + + 'You need to set a username and password to make prototypes visible online.
' + + '') } var user = basicAuth(req)