File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change
1
+ .DS_Store
Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ var auth = exports.auth = {
54
54
return callback ( new journey . NotAuthorized ( "Authorization header is required." ) ) ;
55
55
}
56
56
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
60
60
61
61
if ( scheme !== "Basic" ) {
62
62
return callback ( new journey . NotAuthorized ( "Authorization scheme must be 'Basic'" ) ) ;
@@ -71,4 +71,4 @@ var auth = exports.auth = {
71
71
// Respond with no error if username and password match
72
72
callback ( null ) ;
73
73
}
74
- }
74
+ } ;
You can’t perform that action at this time.
0 commit comments