Merge pull request #9737 from annando/issue-9736

Issue 9736: Fix for undroppable registrations
This commit is contained in:
Tobias Diekershoff 2021-01-02 12:32:36 +01:00 committed by GitHub
commit 695dd407c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1159,6 +1159,9 @@ class User
return false; return false;
} }
// Delete the avatar
Photo::delete(['uid' => $register['uid']]);
return DBA::delete('user', ['uid' => $register['uid']]) && return DBA::delete('user', ['uid' => $register['uid']]) &&
Register::deleteByHash($register['hash']); Register::deleteByHash($register['hash']);
} }