diff options
author | Rahul Gautam <rahulgautam4u@gmail.com> | 2014-03-18 13:31:31 +0530 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2015-03-26 14:00:10 +0100 |
commit | f314da7b1fab6bffdbbe485b6223e5ec61f1c50c (patch) | |
tree | 3c6440d7eb3d60ef0234308938a8e48b28d0b07a /src | |
parent | Fix command change_password (fixes #16) (diff) |
mod_admin_extra: for support in ejabberd-v13.x changed args from string to binary : all changes tested with ejabberdv13.12
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_admin_extra.erl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 109fd6652..25917690d 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -166,7 +166,7 @@ commands() -> #ejabberd_commands{name = num_active_users, tags = [accounts, stats], desc = "Get number of users active in the last days", module = ?MODULE, function = num_active_users, - args = [{host, string}, {days, integer}], + args = [{host, binary}, {days, integer}], result = {users, integer}}, #ejabberd_commands{name = delete_old_users, tags = [accounts, purge], desc = "Delete users that didn't log in last days, or that never logged", @@ -176,24 +176,24 @@ commands() -> #ejabberd_commands{name = delete_old_users_vhost, tags = [accounts, purge], desc = "Delete users that didn't log in last days in vhost, or that never logged", module = ?MODULE, function = delete_old_users_vhost, - args = [{host, string}, {days, integer}], + args = [{host, binary}, {days, integer}], result = {res, restuple}}, #ejabberd_commands{name = check_account, tags = [accounts], desc = "Check if an account exists or not", module = ejabberd_auth, function = is_user_exists, - args = [{user, string}, {host, string}], + args = [{user, binary}, {host, binary}], result = {res, rescode}}, #ejabberd_commands{name = check_password, tags = [accounts], desc = "Check if a password is correct", module = ejabberd_auth, function = check_password, - args = [{user, string}, {host, string}, {password, string}], + args = [{user, binary}, {host, binary}, {password, binary}], result = {res, rescode}}, #ejabberd_commands{name = check_password_hash, tags = [accounts], desc = "Check if the password hash is correct", longdesc = "Allowed hash methods: md5, sha.", module = ?MODULE, function = check_password_hash, - args = [{user, string}, {host, string}, {passwordhash, string}, {hashmethod, string}], + args = [{user, binary}, {host, binary}, {passwordhash, binary}, {hashmethod, binary}], result = {res, rescode}}, #ejabberd_commands{name = change_password, tags = [accounts], desc = "Change the password of an account", @@ -203,18 +203,18 @@ commands() -> #ejabberd_commands{name = ban_account, tags = [accounts], desc = "Ban an account: kick sessions and set random password", module = ?MODULE, function = ban_account, - args = [{user, string}, {host, string}, {reason, string}], + args = [{user, binary}, {host, binary}, {reason, binary}], result = {res, rescode}}, #ejabberd_commands{name = num_resources, tags = [session], desc = "Get the number of resources of a user", module = ?MODULE, function = num_resources, - args = [{user, string}, {host, string}], + args = [{user, binary}, {host, binary}], result = {resources, integer}}, #ejabberd_commands{name = resource_num, tags = [session], desc = "Resource string of a session number", module = ?MODULE, function = resource_num, - args = [{user, string}, {host, string}, {num, integer}], + args = [{user, binary}, {host, binary}, {num, integer}], result = {resource, string}}, #ejabberd_commands{name = kick_session, tags = [session], desc = "Kick a user session", @@ -442,7 +442,7 @@ commands() -> longdesc = "Timestamp is the seconds since" "1970-01-01 00:00:00 UTC, for example: date +%s", module = ?MODULE, function = get_last, - args = [{user, string}, {host, string}], + args = [{user, binary}, {host, binary}], result = {last_activity, string}}, #ejabberd_commands{name = set_last, tags = [last], desc = "Set last activity information", |