diff options
author | Badlop <badlop@process-one.net> | 2015-04-15 11:50:10 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2015-04-15 11:51:34 +0200 |
commit | d6247534106c0f668ec7a5abe29a641a3064036d (patch) | |
tree | c71497fdec7070721f678e4f8be9b00ab94e6232 /src | |
parent | Revert "Hook on group message" (diff) |
Update get_password_s description with SCRAM return values
Diffstat (limited to 'src')
-rw-r--r-- | src/ejabberd_auth.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_auth.erl b/src/ejabberd_auth.erl index 9985dd3de..991cb664b 100644 --- a/src/ejabberd_auth.erl +++ b/src/ejabberd_auth.erl @@ -72,7 +72,7 @@ -callback get_vh_registered_users_number(binary()) -> number(). -callback get_vh_registered_users_number(binary(), opts()) -> number(). -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() -> %% This is only executed by ejabberd_c2s for non-SASL auth client @@ -276,7 +276,7 @@ get_password(User, Server) -> end, 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) -> case get_password(User, Server) of |