mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-17 23:45:29 -05:00
style fix
This commit is contained in:
parent
503b60a45b
commit
151136381e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue