summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-13 03:44:56 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-13 03:44:56 -0400
commit76dae5bf680cd701b1ae9876ecc21486a8721f92 (patch)
treeec620cac291c0bb7af27e26e3ef1fae5a1d090c3 /routers
parent57bc2d1ca0bfc3ba90e6d85309dba39415c6db73 (diff)
downloadgitea-76dae5bf680cd701b1ae9876ecc21486a8721f92.tar.gz
gitea-76dae5bf680cd701b1ae9876ecc21486a8721f92.zip
Bug fix
Diffstat (limited to 'routers')
-rw-r--r--routers/user/setting.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go
index 63e4d8cb7d..5ec4c455ef 100644
--- a/routers/user/setting.go
+++ b/routers/user/setting.go
@@ -24,6 +24,8 @@ func Setting(form auth.UpdateProfileForm, r render.Render, data base.TmplData, r
user := auth.SignedInUser(session)
if req.Method == "GET" {
data["Owner"] = user
+ r.HTML(200, "user/setting", data)
+ return
}
if hasErr, ok := data["HasError"]; ok && hasErr.(bool) {