?INFO_MSG("(~w) Accepted authentication for ~s",
[StateData#state.socket, U]),
{next_state, wait_for_stream,
- StateData#state{authentificated = true,
+ StateData#state{streamid = new_id(),
+ authentificated = true,
user = U
}};
{continue, ServerOut, NewSASLState} ->
{next_state, wait_for_stream,
StateData#state{sockmod = tls,
socket = TLSSocket,
+ streamid = new_id(),
tls_enabled = true
}};
_ ->
?INFO_MSG("(~w) Accepted authentication for ~s",
[StateData#state.socket, U]),
{next_state, wait_for_stream,
- StateData#state{authentificated = true,
+ StateData#state{streamid = new_id(),
+ authentificated = true,
user = U
}};
{continue, ServerOut, NewSASLState} ->