mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-17 09:16:17 +03:00
Bug fix
This commit is contained in:
@ -24,6 +24,8 @@ func Setting(form auth.UpdateProfileForm, r render.Render, data base.TmplData, r
|
|||||||
user := auth.SignedInUser(session)
|
user := auth.SignedInUser(session)
|
||||||
if req.Method == "GET" {
|
if req.Method == "GET" {
|
||||||
data["Owner"] = user
|
data["Owner"] = user
|
||||||
|
r.HTML(200, "user/setting", data)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if hasErr, ok := data["HasError"]; ok && hasErr.(bool) {
|
if hasErr, ok := data["HasError"]; ok && hasErr.(bool) {
|
||||||
|
Reference in New Issue
Block a user