Browse Source

feat: fix initial confirmation sent behaviour

pull/1265/head
natdeanlewissoftwire 3 years ago
parent
commit
0e9a016110
  1. 1
      app/mailers/devise_notify_mailer.rb
  2. 1
      app/models/user.rb

1
app/mailers/devise_notify_mailer.rb

@ -41,6 +41,7 @@ class DeviseNotifyMailer < Devise::Mailer
send_confirmation_email(record.unconfirmed_email, record, token, username)
end
send_confirmation_email(record.email, record, token, username)
record.update!(initial_confirmation_sent: true)
end
def intercept_send?(email)

1
app/models/user.rb

@ -113,7 +113,6 @@ class User < ApplicationRecord
RECONFIRMABLE_TEMPLATE_ID
else
CONFIRMABLE_TEMPLATE_ID
update!(initial_confirmation_sent: true)
end
end

Loading…
Cancel
Save