Mercurial > prosody-modules
changeset 6365:42866d42e267
mod_auth_oauth_external: Implement user deletion
However, unless the user is also deleted from the OAuth provider, this
merely resets the account.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 17 Jan 2026 05:16:25 +0100 |
| parents | 9c110fbecd86 |
| children | 866401d78e7d |
| files | mod_auth_oauth_external/mod_auth_oauth_external.lua |
| diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_auth_oauth_external/mod_auth_oauth_external.lua Sat Jan 17 05:14:25 2026 +0100 +++ b/mod_auth_oauth_external/mod_auth_oauth_external.lua Sat Jan 17 05:16:25 2026 +0100 @@ -43,7 +43,10 @@ provider.get_password = not_implemented; provider.set_password = not_implemented; provider.create_user = not_implemented; -provider.delete_user = not_implemented; + +function provider.delete_user(username) + return accounts:set(username, nil); +end function provider.get_account_info(username) local account = accounts:get(username);
