plugins/mod_auth_internal_plain.lua
changeset 5117 2c7e1ce8f482
parent 5115 3939960b3c07
child 5156 6b08c922a2e4
--- a/plugins/mod_auth_internal_plain.lua	Wed Sep 12 21:40:00 2012 +0500
+++ b/plugins/mod_auth_internal_plain.lua	Wed Sep 12 21:41:51 2012 +0500
@@ -15,7 +15,7 @@
 local host = module.host;
 
 -- define auth provider
-local provider = { name = "internal_plain" };
+local provider = {};
 log("debug", "initializing internal_plain authentication provider for host '%s'", host);
 
 function provider.test_password(username, password)
@@ -78,5 +78,5 @@
 	return new_sasl(host, getpass_authentication_profile);
 end
 	
-module:add_item("auth-provider", provider);
+module:provides("auth", provider);