Removing expired links and avatars.

This commit is contained in:
stephb9959
2021-11-13 09:05:16 -08:00
parent 1e8e5c18b2
commit ab6fbaca11
5 changed files with 23 additions and 2 deletions

View File

@@ -57,6 +57,9 @@ namespace OpenWifi {
if(AuthService()->DeleteUserFromCache(UInfo.email)) {
// nothing to do
}
StorageService()->DeleteAvatar(UserInfo_.userinfo.email,Id);
Logger_.information(Poco::format("Remove all tokens for '%s'", UserInfo_.userinfo.email));
StorageService()->RevokeAllTokens(UInfo.email);
Logger_.information(Poco::format("User '%s' deleted by '%s'.",Id,UserInfo_.userinfo.email));