Diff

plugins/mod_auth_internal_plain.lua @ 5156:6b08c922a2e4

mod_auth_internal_{plain,hashed}: Add support for iterating over accounts
author Kim Alvefur <zash@zash.se>
date Fri, 21 Sep 2012 17:26:12 +0200
parent 5117:2c7e1ce8f482
child 5302:52fe5df91c65
line wrap: on
line diff
--- a/plugins/mod_auth_internal_plain.lua	Fri Sep 21 17:24:44 2012 +0200
+++ b/plugins/mod_auth_internal_plain.lua	Fri Sep 21 17:26:12 2012 +0200
@@ -52,6 +52,10 @@
 	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