plugins/mod_tokenauth.lua
changeset 13078 794a5ad5495e
parent 13077 9e5802b45b9e
child 13102 65d2ff6e674e
--- a/plugins/mod_tokenauth.lua	Wed Apr 12 10:21:32 2023 +0200
+++ b/plugins/mod_tokenauth.lua	Wed Apr 12 11:43:32 2023 +0200
@@ -120,7 +120,7 @@
 	if not encoded_data then return nil; end
 	local token = base64.decode(encoded_data);
 	if not token then return nil; end
-	local token_id, token_secret, token_jid = token:match("^2;([^;]+);([^;]+);(.+)$");
+	local token_id, token_secret, token_jid = token:match("^2;([^;]+);(..................);(.+)$");
 	if not token_id then return nil; end
 	local token_user, token_host = jid.split(token_jid);
 	return token_id, token_user, token_host, token_secret;