Sha256: 088f9584c0cd1d589f807c35167ce9419e76adebf2166444bfaa9dabf843150f

Contents?: true

Size: 825 Bytes

Versions: 12

Compression:

Stored size: 825 Bytes

Contents

# frozen_string_literal: true

module Spree
  class UserMailer < BaseMailer
    def reset_password_instructions(user, token, *_args)
      @store = Spree::Store.default
      @edit_password_reset_url = spree.edit_spree_user_password_url(reset_password_token: token, host: @store.url)
      mail to: user.email, from: from_address(@store), subject: "#{@store.name} #{I18n.t(:subject, scope: [:devise, :mailer, :reset_password_instructions])}"
    end

    def confirmation_instructions(user, token, _opts = {})
      @store = Spree::Store.default
      @confirmation_url = spree.spree_user_confirmation_url(confirmation_token: token, host: @store.url)
      mail to: user.email, from: from_address(@store), subject: "#{@store.name} #{I18n.t(:subject, scope: [:devise, :mailer, :confirmation_instructions])}"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
solidus_auth_devise-2.5.9 app/mailers/spree/user_mailer.rb
solidus_auth_devise-2.5.8 app/mailers/spree/user_mailer.rb
solidus_auth_devise-2.5.7 app/mailers/spree/user_mailer.rb
solidus_auth_devise-2.5.6 app/mailers/spree/user_mailer.rb
solidus_auth_devise-2.5.5 app/mailers/spree/user_mailer.rb
solidus_auth_devise-2.5.4 app/mailers/spree/user_mailer.rb
solidus_auth_devise-2.5.3 app/mailers/spree/user_mailer.rb
solidus_auth_devise-2.5.2 app/mailers/spree/user_mailer.rb
solidus_auth_devise-2.5.1 app/mailers/spree/user_mailer.rb
solidus_auth_devise-2.5.0 app/mailers/spree/user_mailer.rb
solidus_auth_devise-2.4.0 app/mailers/spree/user_mailer.rb
solidus_auth_devise-2.3.0 app/mailers/spree/user_mailer.rb