Browse Source

Bug fix

tags/v1.2.0-rc1
Unknown 12 years ago
parent
commit
76dae5bf68
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/user/setting.go

+ 2
- 0
routers/user/setting.go View File

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


Loading…
Cancel
Save