mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
OAuth: Handle when client is not identified
This commit is contained in:
parent
daaaf221cb
commit
b0e74464b1
1 changed files with 2 additions and 0 deletions
|
@ -245,6 +245,8 @@ terminate(_Reason, _State) ->
|
||||||
code_change(_OldVsn, State, _Extra) -> {ok, State}.
|
code_change(_OldVsn, State, _Extra) -> {ok, State}.
|
||||||
|
|
||||||
|
|
||||||
|
get_client_identity(<<"">>, Ctx) ->
|
||||||
|
{ok, {Ctx, {client, unknown_client}}};
|
||||||
get_client_identity({client, ClientID}, Ctx) ->
|
get_client_identity({client, ClientID}, Ctx) ->
|
||||||
{ok, {Ctx, {client, ClientID}}}.
|
{ok, {Ctx, {client, ClientID}}}.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue