usermanager: Give the default auth provider a name, you'll never guess what it is.

Wed, 05 May 2010 14:17:01 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 05 May 2010 14:17:01 +0100
changeset 2999
9a8f942433c4
parent 2998
36c169ed1576
child 3007
9d122a6ae674

usermanager: Give the default auth provider a name, you'll never guess what it is.

core/usermanager.lua file | annotate | diff | comparison | revisions
--- a/core/usermanager.lua	Wed May 05 11:29:10 2010 +0100
+++ b/core/usermanager.lua	Wed May 05 14:17:01 2010 +0100
@@ -40,7 +40,7 @@
 local function is_cyrus(host) return config.get(host, "core", "sasl_backend") == "cyrus"; end
 
 function new_default_provider(host)
-	local provider = {};
+	local provider = { name = "default" };
 	
 	function provider.test_password(username, password)
 		if is_cyrus(host) then return nil, "Legacy auth not supported with Cyrus SASL."; end

mercurial