aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-03-28 00:30:18 +0200
committerKim Alvefur <zash@zash.se>2023-03-28 00:30:18 +0200
commit41c23d561674d483905220b7b0961a66a185f52b (patch)
tree80b657cfba45d836276edd59633182fc85813a3a /plugins
parent9247a37b832d56611f72a2c5ec44f4b8e79fc61e (diff)
downloadprosody-41c23d561674d483905220b7b0961a66a185f52b.tar.gz
prosody-41c23d561674d483905220b7b0961a66a185f52b.zip
mod_tokenauth: Fix storage API mistake in revocation
Diffstat (limited to 'plugins')
-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 04cc37a1..94c740c0 100644
--- a/plugins/mod_tokenauth.lua
+++ b/plugins/mod_tokenauth.lua
@@ -226,7 +226,7 @@ function revoke_token(token)
if token_host ~= module.host then
return nil, "invalid-host";
end
- return token_store:set(token_user, token_id, nil);
+ return token_store:set_key(token_user, token_id, nil);
end
function sasl_handler(auth_provider, purpose, extra)