diff options
author | Jack Lucas <jflucas@research.att.com> | 2017-05-10 01:48:41 +0000 |
---|---|---|
committer | Jack Lucas <jflucas@research.att.com> | 2017-05-10 01:48:41 +0000 |
commit | ff6ba434b6d91b6a4a4e9b3a7fbb8cadced229ad (patch) | |
tree | 8ae919ab8d1b174944bd6bea6602ce29153be2f6 /lib/auth.js | |
parent | 0806707cbc2dd6311228facabf0a6052862c51c7 (diff) |
Post-R1 API & other updates.
Change-Id: Id0e2e15b95a5713a25a746534fc40b56599a5f06
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Diffstat (limited to 'lib/auth.js')
-rw-r--r-- | lib/auth.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/auth.js b/lib/auth.js index 54b08e2..9ddd7b3 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -21,7 +21,7 @@ See the License for the specific language governing permissions and limitations /* Extract user name and password from the 'Authorization' header */ const parseAuthHeader = function(authHeader){ - let parsedHeader = {}; + var parsedHeader = {}; const authItems = authHeader.split(/\s+/); // Split on the white space between Basic and the base64 encoded user:password @@ -48,15 +48,15 @@ exports.checkAuth = function(req, res, next) { next(); } else { - let err = new Error('Authentication required'); + var err = new Error('Authentication required'); err.status = 403; next(err); } } else { - let err = new Error ('Authentication required'); - err.status = 403; - next(err); + var errx = new Error ('Authentication required'); + errx.status = 403; + next(errx); } } else { |