Fixed wrong username/password in basic authentication
This commit is contained in:
1 parent
51eeb1be55
commit
04ed5aaf0f
1 file changed
+1
-1
+1
-1
@@ -14,7 +14,7 @@ exports.parseAuthHeader = (authHeader) ->
|
|||||||
|
|
||||||
|
|
||||||
exports.basic = (username, password) ->
|
exports.basic = (username, password) ->
|
||||||
"Basic #{new Buffer('Aladdin:open sesame').toString('base64')}"
|
"Basic #{new Buffer("#{username}:#{password}").toString('base64')}"
|
||||||
|
|
||||||
|
|
||||||
exports.digest = (username, password, uri, httpMethod, body, authHeader) ->
|
exports.digest = (username, password, uri, httpMethod, body, authHeader) ->
|
||||||
|
|||||||
Reference in new issue
Block a user