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