aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_internal_plain.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-09-21 17:26:12 +0200
committerKim Alvefur <zash@zash.se>2012-09-21 17:26:12 +0200
commitce8ed6688196ab6b37e71fbef0da4faa9b4b2073 (patch)
treea885f036c4b1ac9960ff33243c4fc7eee421639e /plugins/mod_auth_internal_plain.lua
parent00986c0172baddac5c8fe29acf2fe17966bb7b6a (diff)
downloadprosody-ce8ed6688196ab6b37e71fbef0da4faa9b4b2073.tar.gz
prosody-ce8ed6688196ab6b37e71fbef0da4faa9b4b2073.zip
mod_auth_internal_{plain,hashed}: Add support for iterating over accounts
Diffstat (limited to 'plugins/mod_auth_internal_plain.lua')
-rw-r--r--plugins/mod_auth_internal_plain.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_auth_internal_plain.lua b/plugins/mod_auth_internal_plain.lua
index b7723dd7..7514164d 100644
--- 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