Software /
code /
prosody
Comparison
core/usermanager.lua @ 3167:546695e80e0a
Correct out of order logic in mod_hashpassauth
Make saslauth check the existence of the get_password and test_password functions to determine which authentication profile to use.
author | Jeff Mitchell <jeff@jefferai.org> |
---|---|
date | Fri, 28 May 2010 14:47:32 -0400 |
parent | 3166:3c46cb94caed |
child | 3176:f77759710324 |
comparison
equal
deleted
inserted
replaced
3166:3c46cb94caed | 3167:546695e80e0a |
---|---|
76 | 76 |
77 function get_supported_methods(host) | 77 function get_supported_methods(host) |
78 return hosts[host].users.get_supported_methods(); | 78 return hosts[host].users.get_supported_methods(); |
79 end | 79 end |
80 | 80 |
81 function get_provider(host) | |
82 return hosts[host].users; | |
83 end | |
84 | |
81 function is_admin(jid, host) | 85 function is_admin(jid, host) |
82 if host and host ~= "*" then | 86 if host and host ~= "*" then |
83 return hosts[host].users.is_admin(jid); | 87 return hosts[host].users.is_admin(jid); |
84 else -- Test only whether this JID is a global admin | 88 else -- Test only whether this JID is a global admin |
85 local admins = config.get("*", "core", "admins"); | 89 local admins = config.get("*", "core", "admins"); |