Mercurial > prosody-hg
comparison plugins/mod_auth_internal_hashed.lua @ 8055:b08d9295f036
mod_auth_internal_hashed: Rename unused 'self' to _ [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 04 Apr 2017 01:26:09 +0200 |
| parents | 06cdd4afaaf9 |
| children | cacf14c218ab |
comparison
equal
deleted
inserted
replaced
| 8054:0ba461b7d9af | 8055:b08d9295f036 |
|---|---|
| 108 return accounts:set(username, nil); | 108 return accounts:set(username, nil); |
| 109 end | 109 end |
| 110 | 110 |
| 111 function provider.get_sasl_handler() | 111 function provider.get_sasl_handler() |
| 112 local testpass_authentication_profile = { | 112 local testpass_authentication_profile = { |
| 113 plain_test = function(sasl, username, password, realm) | 113 plain_test = function(_, username, password, realm) |
| 114 return usermanager.test_password(username, realm, password), true; | 114 return usermanager.test_password(username, realm, password), true; |
| 115 end, | 115 end, |
| 116 scram_sha_1 = function(sasl, username, realm) | 116 scram_sha_1 = function(_, username) |
| 117 local credentials = accounts:get(username); | 117 local credentials = accounts:get(username); |
| 118 if not credentials then return; end | 118 if not credentials then return; end |
| 119 if credentials.password then | 119 if credentials.password then |
| 120 usermanager.set_password(username, credentials.password, host); | 120 usermanager.set_password(username, credentials.password, host); |
| 121 credentials = accounts:get(username); | 121 credentials = accounts:get(username); |
