Software /
code /
prosody
Changeset
12917:e4de42495fb7
mod_tokenauth: Gracefully handle missing tokens
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 01 Mar 2023 18:43:54 +0000 |
parents | 12916:5a06d07596f9 |
children | 12918:ed20555f163a |
files | plugins/mod_tokenauth.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_tokenauth.lua Wed Mar 01 13:05:17 2023 +0000 +++ b/plugins/mod_tokenauth.lua Wed Mar 01 18:43:54 2023 +0000 @@ -49,6 +49,7 @@ end local function parse_token(encoded_token) + if not encoded_token then return nil; end local token = base64.decode(encoded_token); if not token then return nil; end local token_jid, token_id = token:match("^1;([^;]+);(.+)$");