Rename /forget_password url to /forgot_password

Also renames `forgot_password` translation key to
`forgot_password_title` and `forget_password` to
`forgot_password`

Includes entry in CHANGELOG about the breaking change
(and some markdown fixes in there)
This commit is contained in:
Sandro Santilli 2017-02-20 19:27:20 +01:00 committed by Kim "BKC" Carlbäcker
parent 8746fb3385
commit 7d8f9d1c46
28 changed files with 58 additions and 53 deletions

View file

@ -864,7 +864,7 @@ func ActivateEmail(ctx *context.Context) {
// ForgotPasswd render the forget pasword page
func ForgotPasswd(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("auth.forgot_password")
ctx.Data["Title"] = ctx.Tr("auth.forgot_password_title")
if setting.MailService == nil {
ctx.Data["IsResetDisable"] = true
@ -881,7 +881,7 @@ func ForgotPasswd(ctx *context.Context) {
// ForgotPasswdPost response for forget password request
func ForgotPasswdPost(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("auth.forgot_password")
ctx.Data["Title"] = ctx.Tr("auth.forgot_password_title")
if setting.MailService == nil {
ctx.Handle(403, "ForgotPasswdPost", nil)