Project

General

Profile

Defect #6254 » 6254.patch

Go MAEDA, 2022-07-21 11:49

View differences:

app/controllers/account_controller.rb
user = User.find_by_mail(email)
# user not found
unless user
flash.now[:error] = l(:notice_account_unknown_email)
# an error that indicates the email is invalid should not be
# displayed to prevent email harvesting
flash[:notice] = l(:notice_account_lost_email_sent)
return
end
unless user.active?
config/locales/en.yml
notice_account_password_updated: Password was successfully updated.
notice_account_wrong_password: Wrong password
notice_account_register_done: Account was successfully created. An email containing the instructions to activate your account was sent to %{email}.
notice_account_unknown_email: Unknown user.
notice_account_not_activated_yet: You haven't activated your account yet. If you want to receive a new activation email, please <a href="%{url}">click this link</a>.
notice_account_locked: Your account is locked.
notice_can_t_change_password: This account uses an external authentication source. Impossible to change the password.
(1-1/2)