diff options
Diffstat (limited to 'routers/web/user/setting/account.go')
-rw-r--r-- | routers/web/user/setting/account.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/web/user/setting/account.go b/routers/web/user/setting/account.go index 5ef1c3bdc8..3362d3806d 100644 --- a/routers/web/user/setting/account.go +++ b/routers/web/user/setting/account.go @@ -22,6 +22,7 @@ import ( "code.gitea.io/gitea/services/auth" "code.gitea.io/gitea/services/forms" "code.gitea.io/gitea/services/mailer" + "code.gitea.io/gitea/services/user" ) const ( @@ -241,7 +242,7 @@ func DeleteAccount(ctx *context.Context) { return } - if err := models.DeleteUser(ctx.User); err != nil { + if err := user.DeleteUser(ctx.User); err != nil { switch { case models.IsErrUserOwnRepos(err): ctx.Flash.Error(ctx.Tr("form.still_own_repo")) |