From 3586488d6beee10fcef3547a73b1bf49d6efdb5c Mon Sep 17 00:00:00 2001 From: Jairo Jair Date: Tue, 21 Apr 2015 01:19:51 -0300 Subject: [PATCH] Improving the variable names returned in the table. --- basic-auth.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basic-auth.lua b/basic-auth.lua index dc2053a..0aa9fe8 100644 --- a/basic-auth.lua +++ b/basic-auth.lua @@ -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