Background image is deleted on account deletion.

This commit is contained in:
Pierre
2018-05-26 15:33:37 +02:00
parent 4c02f6a2a4
commit 2bf74a9ad0
2 changed files with 50 additions and 3 deletions

View File

@ -433,6 +433,9 @@ class AccountComponent {
//Delete user account image
if(!components()->accountImage->delete($userID))
return FALSE;
if(!components()->backgroundImage->delete($userID))
return FALSE;
//Delete connections to all the services
if(!$this->deleteAllUserLoginTokens($userID))
@ -441,6 +444,8 @@ class AccountComponent {
//Delete user from the database
//WILL BE IMPLEMENTED WHEN LEGACY VERSION WILL BE REMOVED
exit("Notice: Account deletion should be available soon...");
//Success
return FALSE;
}