]> granicus.if.org Git - ejabberd/commitdiff
ejabberd_auth: Restore lost case clause
authorHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 26 Jul 2018 20:37:25 +0000 (22:37 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 26 Jul 2018 20:37:25 +0000 (22:37 +0200)
Let check_password_with_authmodule/6 handle the case where
validate_credentials/2 returns an error.  This got lost in commit
4f8af723c6fc5dc4b689f0f1734d4e2b11dd4c82.

src/ejabberd_auth.erl

index b11bfe3c846ecda2332ae7f43444baab63337b63..92c08025933be62e74f4f6552ae810ed3373faf4 100644 (file)
@@ -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()}.