Mercurial > prosody-modules
comparison mod_auth_external/mod_auth_external.lua @ 2829:8082bfc10e65
mod_auth_external: Silence warnings about unused arguments [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 18 Nov 2017 00:36:22 +0100 |
| parents | 3ba36b66f297 |
| children | 92f6f82397c9 |
comparison
equal
deleted
inserted
replaced
| 2828:3ba36b66f297 | 2829:8082bfc10e65 |
|---|---|
| 127 | 127 |
| 128 function provider.user_exists(username) | 128 function provider.user_exists(username) |
| 129 return do_query("isuser", username); | 129 return do_query("isuser", username); |
| 130 end | 130 end |
| 131 | 131 |
| 132 function provider.create_user(username, password) return nil, "Account creation/modification not available."; end | 132 function provider.create_user(username, password) -- luacheck: ignore 212 |
| 133 return nil, "Account creation/modification not available."; | |
| 134 end | |
| 133 | 135 |
| 134 function provider.get_sasl_handler() | 136 function provider.get_sasl_handler() |
| 135 local testpass_authentication_profile = { | 137 local testpass_authentication_profile = { |
| 136 plain_test = function(sasl, username, password, realm) | 138 plain_test = function(sasl, username, password, realm) |
| 137 return usermanager.test_password(username, realm, password), true; | 139 return usermanager.test_password(username, realm, password), true; |
