Mercurial > prosody-hg
comparison plugins/mod_auth_internal_plain.lua @ 8057:4a9275594981
mod_auth_internal_plain: Rename unused self argument [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 04 Apr 2017 01:26:33 +0200 |
| parents | b374eb414a32 |
| children | 0d7d71dee0a0 |
comparison
equal
deleted
inserted
replaced
| 8056:cacf14c218ab | 8057:4a9275594981 |
|---|---|
| 64 return accounts:set(username, nil); | 64 return accounts:set(username, nil); |
| 65 end | 65 end |
| 66 | 66 |
| 67 function provider.get_sasl_handler() | 67 function provider.get_sasl_handler() |
| 68 local getpass_authentication_profile = { | 68 local getpass_authentication_profile = { |
| 69 plain = function(sasl, username, realm) | 69 plain = function(_, username, realm) |
| 70 local password = usermanager.get_password(username, realm); | 70 local password = usermanager.get_password(username, realm); |
| 71 if not password then | 71 if not password then |
| 72 return "", nil; | 72 return "", nil; |
| 73 end | 73 end |
| 74 return password, true; | 74 return password, true; |
