summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2015-05-08 12:04:04 +0200
committerBadlop <badlop@process-one.net>2015-05-08 12:04:04 +0200
commit25beb463910735bdf304b5c56de71d50a570625a (patch)
treeb46a29d76ffa00925a971140b9cc2dd2916cfa28
parentTry to support access_commands in YAML (ejabberd-contrib#45) (diff)
Fix check_password_hash argument parsing (#559)
-rw-r--r--src/mod_admin_extra.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl
index 023c29dc..3687c1ed 100644
--- a/src/mod_admin_extra.erl
+++ b/src/mod_admin_extra.erl
@@ -190,7 +190,7 @@ commands() ->
desc = "Check if the password hash is correct",
longdesc = "Allowed hash methods: md5, sha.",
module = ?MODULE, function = check_password_hash,
- args = [{user, binary}, {host, binary}, {passwordhash, binary}, {hashmethod, binary}],
+ args = [{user, binary}, {host, binary}, {passwordhash, string}, {hashmethod, string}],
result = {res, rescode}},
#ejabberd_commands{name = change_password, tags = [accounts],
desc = "Change the password of an account",