mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-02 21:17:12 +02:00
Remove commented code
This commit is contained in:
parent
b0b3870b2e
commit
d9814709e2
|
@ -80,9 +80,7 @@ mech_step(#state{step = 3, nonce = Nonce} = State,
|
||||||
bad -> {error, <<"bad-protocol">>};
|
bad -> {error, <<"bad-protocol">>};
|
||||||
KeyVals ->
|
KeyVals ->
|
||||||
DigestURI = proplists:get_value(<<"digest-uri">>, KeyVals, <<>>),
|
DigestURI = proplists:get_value(<<"digest-uri">>, KeyVals, <<>>),
|
||||||
%DigestURI = xml:get_attr_s(<<"digest-uri">>, KeyVals),
|
|
||||||
UserName = proplists:get_value(<<"username">>, KeyVals, <<>>),
|
UserName = proplists:get_value(<<"username">>, KeyVals, <<>>),
|
||||||
%UserName = xml:get_attr_s(<<"username">>, KeyVals),
|
|
||||||
case is_digesturi_valid(DigestURI, State#state.host,
|
case is_digesturi_valid(DigestURI, State#state.host,
|
||||||
State#state.hostfqdn)
|
State#state.hostfqdn)
|
||||||
of
|
of
|
||||||
|
@ -94,13 +92,11 @@ mech_step(#state{step = 3, nonce = Nonce} = State,
|
||||||
{error, <<"not-authorized">>, UserName};
|
{error, <<"not-authorized">>, UserName};
|
||||||
true ->
|
true ->
|
||||||
AuthzId = proplists:get_value(<<"authzid">>, KeyVals, <<>>),
|
AuthzId = proplists:get_value(<<"authzid">>, KeyVals, <<>>),
|
||||||
%AuthzId = xml:get_attr_s(<<"authzid">>, KeyVals),
|
|
||||||
case (State#state.get_password)(UserName) of
|
case (State#state.get_password)(UserName) of
|
||||||
{false, _} -> {error, <<"not-authorized">>, UserName};
|
{false, _} -> {error, <<"not-authorized">>, UserName};
|
||||||
{Passwd, AuthModule} ->
|
{Passwd, AuthModule} ->
|
||||||
case (State#state.check_password)(UserName, <<"">>,
|
case (State#state.check_password)(UserName, <<"">>,
|
||||||
proplists:get_value(<<"response">>, KeyVals, <<>>),
|
proplists:get_value(<<"response">>, KeyVals, <<>>),
|
||||||
%xml:get_attr_s(<<"response">>, KeyVals),
|
|
||||||
fun (PW) ->
|
fun (PW) ->
|
||||||
response(KeyVals,
|
response(KeyVals,
|
||||||
UserName,
|
UserName,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user