aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_tokenauth.lua2
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