Skip to content

Commit

Permalink
Use authcid as authzid for digest auth
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Apr 14, 2015
1 parent 2aeba1e commit 07ec735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cyrsasl_digest.erl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ mech_step(#state{step = 3, nonce = Nonce} = State,
case (State#state.get_password)(UserName) of
{false, _} -> {error, <<"not-authorized">>, UserName};
{Passwd, AuthModule} ->
case (State#state.check_password)(UserName, AuthzId, <<"">>,
case (State#state.check_password)(UserName, UserName, <<"">>,
proplists:get_value(<<"response">>, KeyVals, <<>>),
fun (PW) ->
response(KeyVals,
Expand Down

0 comments on commit 07ec735

Please sign in to comment.