diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_sip.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mod_sip.erl b/src/mod_sip.erl index 7e7d2f307..4827e0c3b 100644 --- a/src/mod_sip.erl +++ b/src/mod_sip.erl @@ -263,8 +263,12 @@ check_auth(#sip{method = Method, hdrs = Hdrs, body = Body}, AuthHdr, _SIPSock) - case ejabberd_auth:get_password_s(LUser, LServer) of <<"">> -> false; - Password -> - esip:check_auth(Auth, Method, Body, Password) + Password when is_binary(Password) -> + esip:check_auth(Auth, Method, Body, Password); + _ScramedPassword -> + ?ERROR_MSG("unable to authenticate ~s@~s against SCRAM'ed " + "password", [LUser, LServer]), + false end; [] -> false |