Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 393f329

Browse files
committed
[doc] Update to comment formatting. Add *.key file
1 parent 1f4dd08 commit 393f329

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

doc/nodejs-intro.key

-3.31 KB
Binary file not shown.

lib/03authentication/helpers.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ var auth = exports.auth = {
5454
return callback(new journey.NotAuthorized("Authorization header is required."));
5555
}
5656

57-
var parts = authorization.split(" "),
58-
scheme = parts[0],
59-
credentials = base64.decode(parts[1]).split(":");
57+
var parts = authorization.split(" "), // Basic salkd787&u34n=
58+
scheme = parts[0], // Basic
59+
credentials = base64.decode(parts[1]).split(":"); // admin:password
6060

6161
if (scheme !== "Basic") {
6262
return callback(new journey.NotAuthorized("Authorization scheme must be 'Basic'"));
@@ -71,4 +71,4 @@ var auth = exports.auth = {
7171
// Respond with no error if username and password match
7272
callback(null);
7373
}
74-
}
74+
};

0 commit comments

Comments
 (0)