fixed some broken forms that were introduced in james-anderson@521c5f0e10
This commit is contained in:
parent
32ae6896fa
commit
e5af34a078
4 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue