summaryrefslogtreecommitdiff
path: root/src/ejabberd_admin.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2015-07-23 13:16:15 +0200
committerBadlop <badlop@process-one.net>2015-07-23 13:16:15 +0200
commit19aad464da3079af02b891ea7c4abd164526c51c (patch)
tree27be288904a081d5f04eec74a468090f8acd30c7 /src/ejabberd_admin.erl
parentDon't crash web admin when displaying info about websocket using users (diff)
Provide command for ODBC's convert_to_scram
Diffstat (limited to 'src/ejabberd_admin.erl')
-rw-r--r--src/ejabberd_admin.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ejabberd_admin.erl b/src/ejabberd_admin.erl
index 89421d99..a0b32304 100644
--- a/src/ejabberd_admin.erl
+++ b/src/ejabberd_admin.erl
@@ -167,6 +167,10 @@ commands() ->
desc = "Export all tables as SQL queries to a file",
module = ejd2odbc, function = export,
args = [{host, string}, {file, string}], result = {res, rescode}},
+ #ejabberd_commands{name = convert_to_scram, tags = [odbc],
+ desc = "Convert the passwords in 'users' ODBC table to SCRAM",
+ module = ejabberd_auth_odbc, function = convert_to_scram,
+ args = [{host, binary}], result = {res, rescode}},
#ejabberd_commands{name = convert_to_yaml, tags = [config],
desc = "Convert the input file from Erlang to YAML format",