]> granicus.if.org Git - ejabberd/commitdiff
Pass noauth when auth isn't provided
authorChristophe Romain <christophe.romain@process-one.net>
Wed, 6 Apr 2016 10:43:07 +0000 (12:43 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Mon, 2 May 2016 13:07:00 +0000 (15:07 +0200)
src/ejabberd_ctl.erl

index bb16e91e8868382cc2de6370df0fda9c1d008122..d52d1c0a928284117bf573715ea25bffb7fe2ec8 100644 (file)
@@ -239,7 +239,7 @@ process2(["--auth", User, Server, Pass | Args], AccessCommands, Version) ->
     process2(Args, AccessCommands, {list_to_binary(User), list_to_binary(Server),
                                    list_to_binary(Pass), true}, Version);
 process2(Args, AccessCommands, Version) ->
-    process2(Args, AccessCommands, admin, Version).
+    process2(Args, AccessCommands, noauth, Version).