mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-16 17:15:55 +01:00
mod_scram_upgrade: Don't abort the upgrade
Fix a matching mistake that made the SASL mechanism upgrade fail.
This commit is contained in:
parent
344775aa8e
commit
b90c48f837
@ -111,8 +111,8 @@ c2s_handle_sasl2_task_data({_, #{user := User, server := Server,
|
||||
#scram{hash = Algo, iterationcount = Iter, salt = Salt,
|
||||
serverkey = ServerKey, storedkey = StoredKey}),
|
||||
State2 = maps:remove(scram_upgrade, State),
|
||||
InlineEls = lists:keydelete(sasl_upgrade, 1, InlineEls),
|
||||
case ejabberd_c2s:handle_sasl2_inline(InlineEls, State2) of
|
||||
InlineEls2 = lists:keydelete(sasl_upgrade, 1, InlineEls),
|
||||
case ejabberd_c2s:handle_sasl2_inline(InlineEls2, State2) of
|
||||
{State3, NewEls, Results} ->
|
||||
{success, NewEls, Results, State3}
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user