mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
* src/cyrsasl_digest.erl: Fix auth verification (EJAB-863)
SVN Revision: 2042
This commit is contained in:
parent
028509c3a9
commit
ec779c001c
@ -1,5 +1,7 @@
|
||||
2009-04-27 Badlop <badlop@process-one.net>
|
||||
|
||||
* src/cyrsasl_digest.erl: Fix auth verification (EJAB-863)
|
||||
|
||||
* src/jlib.erl: Fix recursive call to speedup base64
|
||||
decoding (thanks to Jeffrey Rogiers)(EJAB-333)
|
||||
|
||||
|
@ -92,7 +92,7 @@ mech_step(#state{step = 3, nonce = Nonce} = State, ClientIn) ->
|
||||
{false, _} ->
|
||||
{error, 'not-authorized', UserName};
|
||||
{Passwd, AuthModule} ->
|
||||
case (State#state.check_password)(UserName, Passwd,
|
||||
case (State#state.check_password)(UserName, "",
|
||||
proplists:get_value("response", KeyVals, ""),
|
||||
fun(PW) -> response(KeyVals, UserName, PW, Nonce, AuthzId,
|
||||
"AUTHENTICATE") end) of
|
||||
@ -106,6 +106,8 @@ mech_step(#state{step = 3, nonce = Nonce} = State, ClientIn) ->
|
||||
auth_module = AuthModule,
|
||||
username = UserName,
|
||||
authzid = AuthzId}};
|
||||
false ->
|
||||
{error, 'not-authorized', UserName};
|
||||
{false, _} ->
|
||||
{error, 'not-authorized', UserName}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user