prosodyctl: Remove warnings when using a non-standard auth provider, prosodyctl now...
authorMatthew Wild <mwild1@gmail.com>
Thu, 8 Jul 2010 20:10:42 +0000 (21:10 +0100)
committerMatthew Wild <mwild1@gmail.com>
Thu, 8 Jul 2010 20:10:42 +0000 (21:10 +0100)
prosodyctl

index 4aaf90c5a1a8f3ff2ff8665bc4c0ce295e190cc9..94c485e8f30b714b5d6ebb2b9f3b295d68483933 100755 (executable)
@@ -243,12 +243,6 @@ function commands.adduser(arg)
                show_warning("The host '%s' is not listed in the configuration file (or is not enabled).", host)
                show_warning("The user will not be able to log in until this is changed.");
                hosts[host] = make_host(host);
-       elseif config.get(host, "core", "authentication")
-               and config.get(host, "core", "authentication") ~= "default" then
-               show_warning("The host '%s' is configured to use the '%s' authentication provider", host,
-                       config.get(host, "core", "authentication"));
-               show_warning("prosodyctl currently only supports the default provider, sorry :(");
-               return 1;
        end
        
        if prosodyctl.user_exists{ user = user, host = host } then
@@ -288,12 +282,6 @@ function commands.passwd(arg)
                show_warning("The host '%s' is not listed in the configuration file (or is not enabled).", host)
                show_warning("The user will not be able to log in until this is changed.");
                hosts[host] = make_host(host);
-       elseif config.get(host, "core", "authentication")
-               and config.get(host, "core", "authentication") ~= "default" then
-               show_warning("The host '%s' is configured to use the '%s' authentication provider", host,
-                       config.get(host, "core", "authentication"));
-               show_warning("prosodyctl currently only supports the default provider, sorry :(");
-               return 1;
        end
        
        if not prosodyctl.user_exists { user = user, host = host } then
@@ -333,12 +321,6 @@ function commands.deluser(arg)
                show_warning("The host '%s' is not listed in the configuration file (or is not enabled).", host)
                show_warning("The user will not be able to log in until this is changed.");
                hosts[host] = make_host(host);
-       elseif config.get(host, "core", "authentication")
-               and config.get(host, "core", "authentication") ~= "default" then
-               show_warning("The host '%s' is configured to use the '%s' authentication provider", host,
-                       config.get(host, "core", "authentication"));
-               show_warning("prosodyctl currently only supports the default provider, sorry :(");
-               return 1;
        end
 
        if not prosodyctl.user_exists { user = user, host = host } then