mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Clear SASL state after finishing auth
This commit is contained in:
parent
cbbfd921b4
commit
9422164dda
@ -652,6 +652,7 @@ wait_for_feature_request({xmlstreamelement, El},
|
||||
StateData#state{streamid = new_id(),
|
||||
authenticated = true,
|
||||
auth_module = AuthModule,
|
||||
sasl_state = undefined,
|
||||
user = U});
|
||||
{continue, ServerOut, NewSASLState} ->
|
||||
send_element(StateData,
|
||||
@ -809,6 +810,7 @@ wait_for_sasl_response({xmlstreamelement, El},
|
||||
StateData#state{streamid = new_id(),
|
||||
authenticated = true,
|
||||
auth_module = AuthModule,
|
||||
sasl_state = undefined,
|
||||
user = U});
|
||||
{ok, Props, ServerOut} ->
|
||||
(StateData#state.sockmod):reset_stream(StateData#state.socket),
|
||||
@ -829,6 +831,7 @@ wait_for_sasl_response({xmlstreamelement, El},
|
||||
StateData#state{streamid = new_id(),
|
||||
authenticated = true,
|
||||
auth_module = AuthModule,
|
||||
sasl_state = undefined,
|
||||
user = U});
|
||||
{continue, ServerOut, NewSASLState} ->
|
||||
send_element(StateData,
|
||||
|
Loading…
Reference in New Issue
Block a user