Skip to content

Commit

Permalink
fix(basic-auth): update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sumimakito committed Jan 26, 2024
1 parent 47fbc8d commit 744ba11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/plugins/basic-auth/access.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ local function do_authentication(conf)
if given_username and given_password then
credential = load_credential_from_db(given_username)
else
return false, unauthorized("Invalid authentication credentials", www_authenticate)
return false, unauthorized("Unauthorized", www_authenticate)
end
end

if not credential or not validate_credentials(credential, given_password) then
return false, unauthorized("Invalid authentication credentials", www_authenticate)
return false, unauthorized("Unauthorized", www_authenticate)
end

-- Retrieve consumer
Expand Down

0 comments on commit 744ba11

Please sign in to comment.