# HG changeset patch # User Kim Alvefur # Date 1768623385 -3600 # Node ID 42866d42e267ef993df768df7f499b3c5029fea5 # Parent 9c110fbecd866fa454cb3f75f6ff44c2b4f64c2c mod_auth_oauth_external: Implement user deletion However, unless the user is also deleted from the OAuth provider, this merely resets the account. diff -r 9c110fbecd86 -r 42866d42e267 mod_auth_oauth_external/mod_auth_oauth_external.lua --- 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);