1
0
Fork 0
mirror of https://github.com/bjc/prosody.git synced 2025-04-04 21:57:45 +03:00

mod_auth_internal_{plain,hashed}: Add support for iterating over accounts

This commit is contained in:
Kim Alvefur 2012-09-21 17:26:12 +02:00
parent 00986c0172
commit ce8ed66881
2 changed files with 8 additions and 0 deletions

View file

@ -102,6 +102,10 @@ function provider.user_exists(username)
return true;
end
function provider.users()
return datamanager.users(host, "accounts");
end
function provider.create_user(username, password)
if password == nil then
return datamanager.store(username, host, "accounts", {});