mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 16:45:17 +00:00
Background image is deleted on account deletion.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user