summaryrefslogtreecommitdiff
path: root/src/sql_queries.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-05-18 09:51:04 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-05-18 09:51:04 +0300
commitb0b7ac101cf304acc579463c6e2f0a7bc9eadc1b (patch)
tree5fff2a7b9e21a9f13297f8e69b7464aafcbac498 /src/sql_queries.erl
parentReplace 'if_version_above' directive with 'if_have_fun' (diff)
Fix function_clause after authentication refactoring
Fixes https://github.com/processone/ejabberd-contrib/issues/213
Diffstat (limited to 'src/sql_queries.erl')
-rw-r--r--src/sql_queries.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sql_queries.erl b/src/sql_queries.erl
index 862e4e28..2f2e5586 100644
--- a/src/sql_queries.erl
+++ b/src/sql_queries.erl
@@ -205,10 +205,12 @@ del_user_return_password(_LServer, LUser, Password) ->
P.
list_users(LServer) ->
+ list_users(LServer, []).
+
+list_users(LServer, []) ->
ejabberd_sql:sql_query(
LServer,
- ?SQL("select @(username)s from users")).
-
+ ?SQL("select @(username)s from users"));
list_users(LServer, [{from, Start}, {to, End}])
when is_integer(Start) and is_integer(End) ->
list_users(LServer,