summaryrefslogtreecommitdiff
path: root/src/ejabberd_auth_anonymous.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-05-11 15:49:06 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-05-11 15:49:06 +0300
commitcdb191bb48ec8aa251031f7de0f963dee00f3022 (patch)
tree60bf9e5712742c024f7f3aa039795410832f7bf2 /src/ejabberd_auth_anonymous.erl
parentUse cache for authentication backends (diff)
Rename is_user_exists -> user_exists
Diffstat (limited to 'src/ejabberd_auth_anonymous.erl')
-rw-r--r--src/ejabberd_auth_anonymous.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ejabberd_auth_anonymous.erl b/src/ejabberd_auth_anonymous.erl
index b3ae1f6d..a4f3ac1c 100644
--- a/src/ejabberd_auth_anonymous.erl
+++ b/src/ejabberd_auth_anonymous.erl
@@ -40,7 +40,7 @@
unregister_connection/3
]).
--export([login/2, check_password/4, is_user_exists/2,
+-export([login/2, check_password/4, user_exists/2,
get_users/2, count_users/2, store_type/1,
plain_password_required/1, opt_type/1]).
@@ -135,7 +135,7 @@ unregister_connection(_SID,
%% ---------------------------------
check_password(User, _AuthzId, Server, _Password) ->
case
- ejabberd_auth:is_user_exists_in_other_modules(?MODULE,
+ ejabberd_auth:user_exists_in_other_modules(?MODULE,
User, Server)
of
%% If user exists in other module, reject anonnymous authentication
@@ -165,7 +165,7 @@ get_users(Server, _) ->
count_users(Server, Opts) ->
length(get_users(Server, Opts)).
-is_user_exists(User, Server) ->
+user_exists(User, Server) ->
anonymous_user_exist(User, Server).
plain_password_required(_) ->