Mercurial > prosody-modules
changeset 6406:cab284eaeb81
mod_auth_oauth_external: Pass on storage error from account info
In case the storage driver has a problem, that problem is reported
instead of "Account not available"
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 18 Feb 2026 16:30:18 +0100 |
| parents | cdb9c2616c05 |
| children | 6ebda1e5b4f3 |
| files | mod_auth_oauth_external/mod_auth_oauth_external.lua |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_auth_oauth_external/mod_auth_oauth_external.lua Sat Feb 14 12:57:51 2026 +0100 +++ b/mod_auth_oauth_external/mod_auth_oauth_external.lua Wed Feb 18 16:30:18 2026 +0100 @@ -49,8 +49,8 @@ end function provider.get_account_info(username) - local account = accounts:get(username); - if not account then return nil, "Account not available"; end + local account, err = accounts:get(username); + if not account then return nil, err or "Account not available"; end return { created = account.created; password_updated = account.updated;
