mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-20 20:07:03 +01:00
Bug fix
This commit is contained in:
parent
57bc2d1ca0
commit
76dae5bf68
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue