Mercurial > prosody-hg
comparison plugins/mod_auth_internal_plain.lua @ 4684:dc70c4ffb66d
Merge timber->trunk - thanks everyone!
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 24 Apr 2012 21:59:20 +0100 |
| parents | 6900c9484834 |
| children | 943f9f860ab4 |
comparison
equal
deleted
inserted
replaced
| 4529:12621337471f | 4684:dc70c4ffb66d |
|---|---|
| 21 | 21 |
| 22 local prosody = _G.prosody; | 22 local prosody = _G.prosody; |
| 23 | 23 |
| 24 function new_default_provider(host) | 24 function new_default_provider(host) |
| 25 local provider = { name = "internal_plain" }; | 25 local provider = { name = "internal_plain" }; |
| 26 log("debug", "initializing default authentication provider for host '%s'", host); | 26 log("debug", "initializing internal_plain authentication provider for host '%s'", host); |
| 27 | 27 |
| 28 function provider.test_password(username, password) | 28 function provider.test_password(username, password) |
| 29 log("debug", "test password '%s' for user %s at host %s", password, username, module.host); | 29 log("debug", "test password '%s' for user %s at host %s", password, username, module.host); |
| 30 local credentials = datamanager.load(username, host, "accounts") or {}; | 30 local credentials = datamanager.load(username, host, "accounts") or {}; |
| 31 | 31 |
