25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

OAuth: Handle when client is not identified

This commit is contained in:
Badlop 2022-11-16 18:40:34 +01:00
parent daaaf221cb
commit b0e74464b1

View File

@ -245,6 +245,8 @@ terminate(_Reason, _State) ->
code_change(_OldVsn, State, _Extra) -> {ok, State}.
get_client_identity(<<"">>, Ctx) ->
{ok, {Ctx, {client, unknown_client}}};
get_client_identity({client, ClientID}, Ctx) ->
{ok, {Ctx, {client, ClientID}}}.