0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00

style fix

This commit is contained in:
Alex Kocharin 2013-12-19 07:18:45 +04:00
parent 503b60a45b
commit 151136381e

View file

@ -62,8 +62,8 @@ module.exports.basic_auth = function basic_auth(callback) {
})
var scheme = parts[0]
, credentials = new Buffer(parts[1], 'base64').toString()
, index = credentials.indexOf(':')
, credentials = new Buffer(parts[1], 'base64').toString()
, index = credentials.indexOf(':')
if ('Basic' != scheme || index < 0) return next({
status: 400,
@ -71,7 +71,7 @@ module.exports.basic_auth = function basic_auth(callback) {
})
var user = credentials.slice(0, index)
, pass = credentials.slice(index + 1)
, pass = credentials.slice(index + 1)
if (callback(user, pass)) {
req.remoteUser = user