25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Update get_password_s description with SCRAM return values

This commit is contained in:
Badlop 2015-04-15 11:50:10 +02:00
parent a5adaf5798
commit d624753410

View File

@ -72,7 +72,7 @@
-callback get_vh_registered_users_number(binary()) -> number(). -callback get_vh_registered_users_number(binary()) -> number().
-callback get_vh_registered_users_number(binary(), opts()) -> number(). -callback get_vh_registered_users_number(binary(), opts()) -> number().
-callback get_password(binary(), binary()) -> false | binary() | {binary(), binary(), binary(), integer()}. -callback get_password(binary(), binary()) -> false | binary() | {binary(), binary(), binary(), integer()}.
-callback get_password_s(binary(), binary()) -> binary(). -callback get_password_s(binary(), binary()) -> binary() | {binary(), binary(), binary(), integer()}.
start() -> start() ->
%% This is only executed by ejabberd_c2s for non-SASL auth client %% This is only executed by ejabberd_c2s for non-SASL auth client
@ -276,7 +276,7 @@ get_password(User, Server) ->
end, end,
false, auth_modules(Server)). false, auth_modules(Server)).
-spec get_password_s(binary(), binary()) -> binary(). -spec get_password_s(binary(), binary()) -> binary() | {binary(), binary(), binary(), integer()}.
get_password_s(User, Server) -> get_password_s(User, Server) ->
case get_password(User, Server) of case get_password(User, Server) of