Software /
code /
prosody-modules
Changeset
4999:65cdbbf9703a
mod_http_xep227: Updates for new mod_tokenauth (trunk/0.13 only)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 13 Jul 2022 11:21:19 +0100 |
parents | 4998:5ab134b7e510 |
children | 5000:8b6fe33d1c9b |
files | mod_http_xep227/mod_http_xep227.lua |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_xep227/mod_http_xep227.lua Wed Jul 13 11:20:09 2022 +0100 +++ b/mod_http_xep227/mod_http_xep227.lua Wed Jul 13 11:21:19 2022 +0100 @@ -346,11 +346,7 @@ end if auth_type == "Bearer" then - local token_info = tokens.get_token_info(auth_data); - if not token_info or not token_info.session then - return false; - end - return token_info.session; + return tokens.get_token_session(auth_data); end return nil; end