Skip to content

Commit

Permalink
Fix var declaration in lib/utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodor Vararu committed Aug 9, 2016
1 parent 8d8de51 commit a5da682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var basicAuth = require('basic-auth'),
config = require(__dirname + '/../app/config.js'),
fs = require('fs');
fs = require('fs'),
portScanner = require('portscanner'),
prompt = require('prompt');

Expand All @@ -23,7 +23,7 @@ exports.basicAuth = function(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://github.com/alphagov/govuk_prototype_kit/blob/master/docs/guides/publishing-on-heroku.md#5-set-a-username-and-password">See guidance for setting these</a>.</p>');
}

var user = basicAuth(req);

if (!user || user.name !== username || user.pass !== password) {
Expand Down

0 comments on commit a5da682

Please sign in to comment.