aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2022-11-16 18:40:34 +0100
committerBadlop <badlop@process-one.net>2022-11-23 18:40:23 +0100
commitb0e74464b1e536e37e0094112d2cfaaef072f15e (patch)
treeee0ee80e81c8c2763b2f1e4bf1c59ec6b5ee1098
parentDon't set i18n option because Converse enforces it instead of browser lang (#... (diff)
OAuth: Handle when client is not identified
-rw-r--r--src/ejabberd_oauth.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ejabberd_oauth.erl b/src/ejabberd_oauth.erl
index 51676ac5d..a70ca6bae 100644
--- a/src/ejabberd_oauth.erl
+++ b/src/ejabberd_oauth.erl
@@ -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}}}.