mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
correct fix for #396
This commit is contained in:
parent
cb57cfa1a6
commit
e01eb734b4
@ -79,7 +79,7 @@ mech_step(#state{step = 2} = State, ClientIn) ->
|
|||||||
{Ret, _AuthModule} = (State#state.get_password)(UserName),
|
{Ret, _AuthModule} = (State#state.get_password)(UserName),
|
||||||
case {Ret, jlib:resourceprep(Ret)} of
|
case {Ret, jlib:resourceprep(Ret)} of
|
||||||
{false, _} -> {error, <<"not-authorized">>, UserName};
|
{false, _} -> {error, <<"not-authorized">>, UserName};
|
||||||
{_, error} when is_list(Ret) -> ?WARNING_MSG("invalid plain password", []), {error, <<"not-authorized">>, UserName};
|
{_, error} when is_binary(Ret) -> ?WARNING_MSG("invalid plain password", []), {error, <<"not-authorized">>, UserName};
|
||||||
{Ret, _} ->
|
{Ret, _} ->
|
||||||
{StoredKey, ServerKey, Salt, IterationCount} =
|
{StoredKey, ServerKey, Salt, IterationCount} =
|
||||||
if is_tuple(Ret) -> Ret;
|
if is_tuple(Ret) -> Ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user