spec/test_apps/rails-2-3/app/controllers/passwords_controller.rb
# Be more gentle than the default Clearance implementation and redirect
# users to the password recovery from if the token is incorrect (or already used)
Be more gentle than the default Clearance implementation and redirect
users to the password recovery from if the token is incorrect (or already used)
Be more gentle than the default Clearance implementation and redirect users to the password recovery from if the token is incorrect ( or already used )
def forbid_non_existent_user
    super
  rescue ActionController::Forbidden => e
    if User.exists?(params[:user_id])
      redirect_to new_password_path(:user_id => params[:user_id])
    else
      raise e
    end
  end
def forbid_non_existent_user super rescue ActionController :: Forbidden => e if User . exists? ( params [ :user_id ] ) redirect_to new_password_path ( :user_id => params [ :user_id ] ) else raise e end end
Be more gentle than the default Clearance implementation and redirect
users to the password recovery from if the token is incorrect (or already used)
Be more gentle than the default Clearance implementation and redirect users to the password recovery from if the token is incorrect ( or already used )