diff --git a/app/models/user.rb b/app/models/user.rb index c79ceb0d9..f02e57553 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -164,6 +164,7 @@ class User < ApplicationRecord def reset_password_notify_template RESET_PASSWORD_TEMPLATE_ID end + def confirmable_template if last_sign_in_at.present? && (unconfirmed_email.blank? || unconfirmed_email == email)