diff options
author | Badlop <badlop@process-one.net> | 2022-11-16 18:40:34 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2022-11-23 18:40:23 +0100 |
commit | b0e74464b1e536e37e0094112d2cfaaef072f15e (patch) | |
tree | ee0ee80e81c8c2763b2f1e4bf1c59ec6b5ee1098 | |
parent | Don'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.erl | 2 |
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}}}. |