1
0
Fork 0
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:
Unknwon 2014-08-14 14:12:21 +08:00
parent 2935ee440c
commit 5acc948562
19 changed files with 393 additions and 184 deletions

View file

@ -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)