Updated error message for an incorrect password

Этот коммит содержится в:
nickago
2015-07-30 13:54:00 -07:00
родитель aac2567116
Коммит a41c42c4d4

Просмотреть файл

@@ -835,7 +835,7 @@ func updatePassword(c *Context, w http.ResponseWriter, r *http.Request) {
}
if !model.ComparePassword(user.Password, currentPassword) {
c.Err = model.NewAppError("updatePassword", "Update password failed because of invalid password", "")
c.Err = model.NewAppError("updatePassword", "The \"Current Password\" you entered is incorrect. Please check that Caps Lock is off and try again.", "")
c.Err.StatusCode = http.StatusForbidden
return
}