diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-07-08 21:10:42 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-07-08 21:10:42 +0100 |
commit | 8db4e7e0b2e8a5c0413819aef5c3486e3cd162c5 (patch) | |
tree | 7422350b89f1a8d8523b08745f04460a93cf0f63 /prosodyctl | |
parent | 43f0ee7e21cb9f23b66a47f0510afe60882bc2b6 (diff) | |
download | prosody-8db4e7e0b2e8a5c0413819aef5c3486e3cd162c5.tar.gz prosody-8db4e7e0b2e8a5c0413819aef5c3486e3cd162c5.zip |
prosodyctl: Remove warnings when using a non-standard auth provider, prosodyctl now works with any auth provider
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -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 |