You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: passwords_controller.rb
    path of file: ./repos/freeinklewriter/app/controllers/users
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Users::PasswordsController < Devise::PasswordsController



  # GET /resource/password/new
  # def ne
    
  def create
    self.resource = resource_class.send_reset_password_instructions(resource_params)
    yield resource if block_given?
    
    if successfully_sent?(resource)
      render json: { message: "Success, an email has been sent over to you" }, status: 200
    else
      render json: { errors: "Invalid or not found email address." }, status: 200
    end