Sha256: 0334b2728b4db397114f054aba9186508d68979d75eb2c91bd9f9e744d6faa7d

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 Bytes

Contents

class IdentityMailer < ApplicationMailer
  def password_reset_provision
    @<%= singular_table_name %> = params[:<%= singular_table_name %>]
    @signed_id = @<%= singular_table_name %>.signed_id(purpose: :password_reset, expires_in: 20.minutes)

    mail to: @<%= singular_table_name %>.email, subject: "Reset your password"
  end

  def email_verify_confirmation
    @<%= singular_table_name %> = params[:<%= singular_table_name %>]
    @signed_id = @<%= singular_table_name %>.signed_id(purpose: @<%= singular_table_name %>.email, expires_in: 20.minutes)

    mail to: @<%= singular_table_name %>.email, subject: "Verify your email"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authentication-zero-2.3.4 lib/generators/authentication/templates/mailers/identity_mailer.rb.tt