diff options
author | AJ ONeal <coolaj86@gmail.com> | 2019-04-18 01:23:59 -0600 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-04-18 10:23:59 +0300 |
commit | 6dbd26185203d464c4a4e32e7af04a34f37ae4f2 (patch) | |
tree | a637798c309f188ffb8abed5716b2fa03e5cb937 /models | |
parent | fdb933cd67c10c6860ba39402f4b266a9f198f72 (diff) | |
download | gitea-6dbd26185203d464c4a4e32e7af04a34f37ae4f2.tar.gz gitea-6dbd26185203d464c4a4e32e7af04a34f37ae4f2.zip |
UX + Security current user password reset (#5042)
* allow current user to reset their own password
* handle reset password edge cases properly and consistently
* remove dangling assignment
* properly label account recovery instead of reset password
* remove 'Click here' from button
* update English-only account-recovery templates
Diffstat (limited to 'models')
-rw-r--r-- | models/mail.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/mail.go b/models/mail.go index 4f2bd548f7..c8f67bd345 100644 --- a/models/mail.go +++ b/models/mail.go @@ -73,7 +73,7 @@ func SendActivateAccountMail(c *macaron.Context, u *User) { // SendResetPasswordMail sends a password reset mail to the user func SendResetPasswordMail(c *macaron.Context, u *User) { - SendUserMail(c, u, mailAuthResetPassword, u.GenerateActivateCode(), c.Tr("mail.reset_password"), "reset password") + SendUserMail(c, u, mailAuthResetPassword, u.GenerateActivateCode(), c.Tr("mail.reset_password"), "recover account") } // SendActivateEmailMail sends confirmation email to confirm new email address |