Skip to content

Commit

Permalink
refactor(plugins) removing unused parameter in auth plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco committed Mar 7, 2017
1 parent 04601e2 commit 6104c85
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kong/plugins/basic-auth/access.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function _M.execute(conf)
nil, load_consumer_into_memory, conf.anonymous, true)
set_consumer(consumer, nil)
else
return responses.send(err.status, err.message, err.headers)
return responses.send(err.status, err.message)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion kong/plugins/hmac-auth/access.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function _M.execute(conf)
nil, load_consumer_into_memory, conf.anonymous, true)
set_consumer(consumer, nil)
else
return responses.send(err.status, err.message, err.headers)
return responses.send(err.status, err.message)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion kong/plugins/jwt/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function JwtHandler:access(conf)
nil, load_consumer, conf.anonymous, true)
set_consumer(consumer, nil)
else
return responses.send(err.status, err.message, err.headers)
return responses.send(err.status, err.message)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion kong/plugins/key-auth/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function KeyAuthHandler:access(conf)
nil, load_consumer, conf.anonymous, true)
set_consumer(consumer, nil)
else
return responses.send(err.status, err.message, err.headers)
return responses.send(err.status, err.message)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion kong/plugins/ldap-auth/access.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function _M.execute(conf)
nil, load_consumer, conf.anonymous, true)
set_consumer(consumer, nil)
else
return responses.send(err.status, err.message, err.headers)
return responses.send(err.status, err.message)
end
end
end
Expand Down

0 comments on commit 6104c85

Please sign in to comment.