projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mod_http_files: Export function can be used by other modules to serve files. Don...
[prosody.git]
/
plugins
/
mod_auth_internal_plain.lua
diff --git
a/plugins/mod_auth_internal_plain.lua
b/plugins/mod_auth_internal_plain.lua
index b7723dd7009ee0261193f5b8c42bcfa44dd9bd5c..7514164d6f71ee6b1d99afcabb079e855b6069e6 100644
(file)
--- a/
plugins/mod_auth_internal_plain.lua
+++ b/
plugins/mod_auth_internal_plain.lua
@@
-52,6
+52,10
@@
function provider.user_exists(username)
return true;
end
+function provider.users()
+ return datamanager.users(host, "accounts");
+end
+
function provider.create_user(username, password)
return datamanager.store(username, host, "accounts", {password = password});
end