Skip to content

Commit 3fefc5c

Browse files
author
Leon Strauss
committed
fixed challenges being turned on by default instead of off as the documentation says
1 parent 4589403 commit 3fefc5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var auth = require('basic-auth');
22
var assert = require('assert');
33

44
function buildMiddleware(options) {
5-
var challenge = options.challenge != undefined ? !!options.challenge : true;
5+
var challenge = options.challenge != undefined ? !!options.challenge : false;
66
var users = options.users || {};
77
var authorizer = options.authorizer || staticUsersAuthorizer;
88
var isAsync = options.authorizeAsync != undefined ? !!options.authorizeAsync : false;

0 commit comments

Comments
 (0)