Mercurial > prosody-hg
comparison plugins/mod_auth_internal_plain.lua @ 8060:71bdfdf6565d
Merge 0.10->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 04 Apr 2017 01:41:09 +0200 |
| parents | 4a9275594981 |
| children | 0d7d71dee0a0 |
comparison
equal
deleted
inserted
replaced
| 8051:b2681397bafa | 8060:71bdfdf6565d |
|---|---|
| 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; |
