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: manager_invitations.rb
    path of file: ./repos/openfoodnetwork/app/controllers/concerns
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ManagerInvitations
  extend ActiveSupport::Concern

  def create_new_manager(email, enterprise)
    password = Devise.friendly_token
    new_user = Spree::User.create(email:, unconfirmed_email: email, password:)
    new_user.reset_password_token = De
    
  def create_new_manager(email, enterprise)
    password = Devise.friendly_token
    new_user = Spree::User.create(email:, unconfirmed_email: email, password:)
    new_user.reset_password_token = Devise.friendly_token
    # Same time as used in Devise's lib/devise/models/recoverable.rb.
    new_user.reset_password_sent_at = Time.now.utc
    if new_user.save
      enterprise.users << new_user
      EnterpriseMailer.manager_invitation(enterprise, new_user).deliver_later
    end