Skip to content

Commit

Permalink
Improving the variable names returned in the table.
Browse files Browse the repository at this point in the history
  • Loading branch information
jairojair committed Apr 21, 2015
1 parent 80c10fe commit 3586488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basic-auth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ function auth(request)
local auth = request.headers.Authorization

if auth then
local user, pass = get_credentials(auth)
return { user = user, pass = pass }
local username, password = get_credentials(auth)
return { name = username, pass = password }
end
end
end
Expand Down

0 comments on commit 3586488

Please sign in to comment.