Mercurial > prosody-hg
comparison core/usermanager.lua @ 3395:e736f68c1047
usermanager, mod_auth_internal_hashed, mod_legacyauth: New order of parameters for usermanager.test_password - username, host, password
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 21 Jul 2010 21:01:36 +0100 |
| parents | 90bf162303f3 |
| children | 79e08dc3fd37 |
comparison
equal
deleted
inserted
replaced
| 3394:9bf5f2b3314b | 3395:e736f68c1047 |
|---|---|
| 61 prosody.events.add_handler("host-activated", initialize_host, 100); | 61 prosody.events.add_handler("host-activated", initialize_host, 100); |
| 62 prosody.events.add_handler("component-activated", initialize_host, 100); | 62 prosody.events.add_handler("component-activated", initialize_host, 100); |
| 63 | 63 |
| 64 function is_cyrus(host) return config.get(host, "core", "sasl_backend") == "cyrus"; end | 64 function is_cyrus(host) return config.get(host, "core", "sasl_backend") == "cyrus"; end |
| 65 | 65 |
| 66 function test_password(username, password, host) | 66 function test_password(username, host, password) |
| 67 return hosts[host].users.test_password(username, password); | 67 return hosts[host].users.test_password(username, password); |
| 68 end | 68 end |
| 69 | 69 |
| 70 function get_password(username, host) | 70 function get_password(username, host) |
| 71 return hosts[host].users.get_password(username); | 71 return hosts[host].users.get_password(username); |
