X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/29cc21c5990d7aec15e3cbed6e7410373904b5ac..5058e7d748334f4d2c435d7818d7b55537739d1e:/app/controllers/passwords_controller.rb?ds=inline diff --git a/app/controllers/passwords_controller.rb b/app/controllers/passwords_controller.rb index a70883eda..26b21b6d9 100644 --- a/app/controllers/passwords_controller.rb +++ b/app/controllers/passwords_controller.rb @@ -42,12 +42,10 @@ class PasswordsController < ApplicationController if user token = user.generate_token_for(:password_reset) UserMailer.lost_password(user, token).deliver_later - flash[:notice] = t ".notice email on way" - redirect_to login_path - else - flash.now[:error] = t ".notice email cannot find" - render :new end + + flash[:notice] = t ".send_paranoid_instructions" + redirect_to login_path end def update