mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-05 09:55:20 +02:00
Page: /org/:orgname/settings
This commit is contained in:
parent
2935ee440c
commit
5acc948562
19 changed files with 393 additions and 184 deletions
|
@ -252,16 +252,14 @@ func SettingsDelete(ctx *middleware.Context) {
|
|||
case models.ErrUserOwnRepos:
|
||||
ctx.Flash.Error(ctx.Tr("form.still_own_repo"))
|
||||
ctx.Redirect("/user/settings/delete")
|
||||
return
|
||||
default:
|
||||
ctx.Handle(500, "DeleteUser", err)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
log.Trace("Account deleted: %s", ctx.User.Name)
|
||||
ctx.Redirect("/")
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
ctx.HTML(200, SETTINGS_DELETE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue