aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2016-04-06 12:43:07 +0200
committerChristophe Romain <christophe.romain@process-one.net>2016-05-02 15:07:00 +0200
commit8a6c51290a65a34b4a6e919ca0455b23f6480539 (patch)
tree4368478635273c2675dcdd1d25d8c753fc7c58f6
parentUse MEDIUMTEXT type for muc_room.opts in MySQL schema (diff)
Pass noauth when auth isn't provided
-rw-r--r--src/ejabberd_ctl.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_ctl.erl b/src/ejabberd_ctl.erl
index bb16e91e8..d52d1c0a9 100644
--- a/src/ejabberd_ctl.erl
+++ b/src/ejabberd_ctl.erl
@@ -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).