Skip to content

Commit 07ec735

Browse files
committed
Use authcid as authzid for digest auth
1 parent 2aeba1e commit 07ec735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cyrsasl_digest.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ mech_step(#state{step = 3, nonce = Nonce} = State,
9595
case (State#state.get_password)(UserName) of
9696
{false, _} -> {error, <<"not-authorized">>, UserName};
9797
{Passwd, AuthModule} ->
98-
case (State#state.check_password)(UserName, AuthzId, <<"">>,
98+
case (State#state.check_password)(UserName, UserName, <<"">>,
9999
proplists:get_value(<<"response">>, KeyVals, <<>>),
100100
fun (PW) ->
101101
response(KeyVals,

0 commit comments

Comments
 (0)