From ce8ed6688196ab6b37e71fbef0da4faa9b4b2073 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 21 Sep 2012 17:26:12 +0200 Subject: mod_auth_internal_{plain,hashed}: Add support for iterating over accounts --- plugins/mod_auth_internal_hashed.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/mod_auth_internal_hashed.lua') diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua index b61fba80..4535f9c9 100644 --- a/plugins/mod_auth_internal_hashed.lua +++ b/plugins/mod_auth_internal_hashed.lua @@ -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", {}); -- cgit v1.2.3