Mercurial > prosody-modules
comparison mod_auth_external/mod_auth_external.lua @ 2828:3ba36b66f297
mod_auth_external: Remove duplicated local variable [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 18 Nov 2017 00:35:36 +0100 |
parents | 45380b77303d |
children | 8082bfc10e65 |
comparison
equal
deleted
inserted
replaced
2827:45380b77303d | 2828:3ba36b66f297 |
---|---|
113 (response:match("^error:") and response) or ("["..#response.." bytes]")); | 113 (response:match("^error:") and response) or ("["..#response.." bytes]")); |
114 return nil, "internal-server-error"; | 114 return nil, "internal-server-error"; |
115 end | 115 end |
116 end | 116 end |
117 | 117 |
118 local host = module.host; | |
119 local provider = {}; | 118 local provider = {}; |
120 | 119 |
121 function provider.test_password(username, password) | 120 function provider.test_password(username, password) |
122 return do_query("auth", username, password); | 121 return do_query("auth", username, password); |
123 end | 122 end |