1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-19 08:48:37 +00:00

fix delete user failed on sqlite (#1321)

This commit is contained in:
Lunny Xiao
2017-03-20 22:13:52 +08:00
committed by GitHub
parent bd8fe49076
commit 888dee3b5f
2 changed files with 6 additions and 6 deletions

View File

@@ -990,7 +990,7 @@ func deleteUser(e *xorm.Session, u *User) error {
}
// ***** START: ExternalLoginUser *****
if err = RemoveAllAccountLinks(u); err != nil {
if err = removeAllAccountLinks(e, u); err != nil {
return fmt.Errorf("ExternalLoginUser: %v", err)
}
// ***** END: ExternalLoginUser *****