Skip to content

Commit

Permalink
Merge pull request #109 from phated/support-try-mode
Browse files Browse the repository at this point in the history
support try mode
  • Loading branch information
nelsonic committed Oct 13, 2015
2 parents d2eff25 + 35a1b95 commit 923b326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internals.implementation = function (server, options) {
authenticate: function (request, reply) {
var token = extract(request, options);

if (!token && request.auth.mode === 'optional') {
if (!token && request.auth.mode !== 'required') {
return reply.continue({ credentials: {} });
}

Expand Down

0 comments on commit 923b326

Please sign in to comment.