From: Holger Weiss Date: Thu, 26 Jul 2018 20:37:25 +0000 (+0200) Subject: ejabberd_auth: Restore lost case clause X-Git-Tag: 18.09~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d45832a39b491e7eb8af6cf282453007b735605;p=ejabberd ejabberd_auth: Restore lost case clause Let check_password_with_authmodule/6 handle the case where validate_credentials/2 returns an error. This got lost in commit 4f8af723c6fc5dc4b689f0f1734d4e2b11dd4c82. --- diff --git a/src/ejabberd_auth.erl b/src/ejabberd_auth.erl index b11bfe3c8..92c080259 100644 --- a/src/ejabberd_auth.erl +++ b/src/ejabberd_auth.erl @@ -245,7 +245,9 @@ check_password_with_authmodule(User, AuthzId, Server, Password, Digest, DigestGe (_, Acc) -> Acc end, false, auth_modules(LServer)) - end + end; + _ -> + false end. -spec set_password(binary(), binary(), password()) -> ok | {error, atom()}.