aboutsummaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-03-20 22:13:52 +0800
committerGitHub <noreply@github.com>2017-03-20 22:13:52 +0800
commit888dee3b5f931062ea97e57130b26d1943e5173e (patch)
treeb2c17ef8415db45998bb8d706611d3fff5e7faf0 /models/user.go
parentbd8fe49076e0f880fbb923822f2247b57f9799e9 (diff)
downloadgitea-888dee3b5f931062ea97e57130b26d1943e5173e.tar.gz
gitea-888dee3b5f931062ea97e57130b26d1943e5173e.zip
fix delete user failed on sqlite (#1321)
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index ad303d7535..72c21f4369 100644
--- a/models/user.go
+++ b/models/user.go
@@ -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 *****