]> granicus.if.org Git - ejabberd/commitdiff
Fix check_password_hash argument parsing (#559)
authorBadlop <badlop@process-one.net>
Fri, 8 May 2015 10:04:04 +0000 (12:04 +0200)
committerBadlop <badlop@process-one.net>
Fri, 8 May 2015 10:04:04 +0000 (12:04 +0200)
src/mod_admin_extra.erl

index 023c29dcd941d22e415b0850310f64bd3a0301ad..3687c1edf37f65d6db13ba3f0e3642a5a3094c63 100644 (file)
@@ -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",