From e5af34a0787f2b5fd8a4da8571659af545da54a4 Mon Sep 17 00:00:00 2001 From: James Anderson Date: Thu, 24 Apr 2014 14:50:24 -0400 Subject: [PATCH] fixed some broken forms that were introduced in james-anderson@521c5f0e10 --- routers/user/setting.go | 6 +++--- templates/user/password.tmpl | 2 +- templates/user/publickey.tmpl | 2 +- templates/user/setting.tmpl | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/routers/user/setting.go b/routers/user/setting.go index a8fdc116c..019044c53 100644 --- a/routers/user/setting.go +++ b/routers/user/setting.go @@ -66,7 +66,7 @@ func SettingPost(ctx *middleware.Context, form auth.UpdateProfileForm) { log.Trace("%s User setting updated: %s", ctx.Req.RequestURI, ctx.User.LowerName) ctx.Flash.Success("Your profile has been successfully updated.") - ctx.Redirect("/user/setting") + ctx.Redirect("/user/settings") } func SettingSocial(ctx *middleware.Context) { @@ -122,7 +122,7 @@ func SettingPasswordPost(ctx *middleware.Context, form auth.UpdatePasswdForm) { ctx.Flash.Success("Password is changed successfully. You can now sign in via new password.") } - ctx.Redirect("/user/setting/password") + ctx.Redirect("/user/settings/password") } func SettingSSHKeys(ctx *middleware.Context, form auth.AddSSHKeyForm) { @@ -181,7 +181,7 @@ func SettingSSHKeys(ctx *middleware.Context, form auth.AddSSHKeyForm) { } else { log.Trace("%s User SSH key added: %s", ctx.Req.RequestURI, ctx.User.LowerName) ctx.Flash.Success("New SSH Key has been added!") - ctx.Redirect("/user/setting/ssh") + ctx.Redirect("/user/settings/ssh") return } } diff --git a/templates/user/password.tmpl b/templates/user/password.tmpl index cba9cce0c..c55d27fa1 100644 --- a/templates/user/password.tmpl +++ b/templates/user/password.tmpl @@ -5,7 +5,7 @@

Password

-
+ {{.CsrfTokenHtml}} {{template "base/alert" .}}
diff --git a/templates/user/publickey.tmpl b/templates/user/publickey.tmpl index 8eb7be487..bf9aac113 100644 --- a/templates/user/publickey.tmpl +++ b/templates/user/publickey.tmpl @@ -21,7 +21,7 @@