From aa64c4271f4d057cf9c6dc3273633243cd3d7e1d Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 12 Sep 2024 10:06:23 +0100 Subject: [PATCH] empty --- app/models/user.rb | 1 + 1 file changed, 1 insertion(+) 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)