Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PaaS improvements #375

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .cfignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.sass-cache
.DS_Store
.start.pid
.port.tmp
public
lib/govuk_template.html
govuk_modules
node_modules/*
.tmuxp.*
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ exports.basicAuth = function (username, password) {
return function (req, res, next) {
if (!username || !password) {
console.log('Username or password is not set.')
return res.send('<h1>Error:</h1><p>Username or password not set. <a href="https://govuk-prototype-kit.herokuapp.com/docs/publishing-on-heroku#5-set-a-username-and-password">See guidance for setting these</a>.</p>')
return res.send('<h1>Error: username or password not set.</h1><p>All prototypes should be protected from accidental discovery by the public when published online.</p> <p>The GOV.UK prototype kit will not make your work visible online until you&apos;ve added a username and password for basic authentication.</p> <p> <a href="https://govuk-prototype-kit.herokuapp.com/docs/publishing-on-heroku#5-set-a-username-and-password">See guidance for doing this</a>.</p>')
}

var user = basicAuth(req)
Expand Down