mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Provide authzid in scream response
This commit is contained in:
parent
bf79f223df
commit
b160bd7ac1
@ -159,7 +159,8 @@ mech_step(#state{step = 4} = State, ClientIn) ->
|
||||
ServerSignature =
|
||||
scram:server_signature(State#state.server_key,
|
||||
AuthMessage),
|
||||
{ok, [{username, State#state.username}],
|
||||
{ok, [{username, State#state.username},
|
||||
{authzid, State#state.username}],
|
||||
<<"v=",
|
||||
(jlib:encode_base64(ServerSignature))/binary>>};
|
||||
true -> {error, <<"bad-auth">>, State#state.username}
|
||||
|
Loading…
Reference in New Issue
Block a user