diff options
author | Kim Alvefur <zash@zash.se> | 2023-03-02 22:34:29 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-03-02 22:34:29 +0100 |
commit | 7b7cad2b668fb94f84aa24396d3c2f72121d0083 (patch) | |
tree | dcda076780497c7e52a8dc8126a656ae3e2f03e0 /plugins | |
parent | aabfdaf01ac96c6bfa759dfc22d507b3174068c8 (diff) | |
download | prosody-7b7cad2b668fb94f84aa24396d3c2f72121d0083.tar.gz prosody-7b7cad2b668fb94f84aa24396d3c2f72121d0083.zip |
mod_tokenauth: Fix misplaced closing parenthesis
`type(x ~= y)` is always a string, thus truthy
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_tokenauth.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_tokenauth.lua b/plugins/mod_tokenauth.lua index 1eb5c66b..03f6b961 100644 --- a/plugins/mod_tokenauth.lua +++ b/plugins/mod_tokenauth.lua @@ -25,7 +25,7 @@ function create_jid_token(actor_jid, token_jid, token_role, token_ttl, token_dat return nil, "invalid-host"; end - if (token_data and type(token_data) ~= "table") or (token_purpose and type(token_purpose ~= "string")) then + if (token_data and type(token_data) ~= "table") or (token_purpose and type(token_purpose) ~= "string") then return nil, "bad-request"; end |