lib/devise/multi_email/models/confirmable.rb
def active_for_authentication?
          login_email = multi_email.login_email_record

          if login_email && !login_email.primary?
            super && login_email.active_for_authentication?
          else
            super
          end
        end
# This need to be forwarded to the email that the user logged in with
This need to be forwarded to the email that the user logged in with
This need to be forwarded to the email that the user logged in with
def active_for_authentication?
          login_email = multi_email.login_email_record
          if login_email && !login_email.primary?
            super && login_email.active_for_authentication?
          else
            super
          end
        end
def active_for_authentication? login_email = multi_email . login_email_record if login_email && ! login_email . primary? super && login_email . active_for_authentication? else super end end
This need to be forwarded to the email that the user logged in with
This need to be forwarded to the email that the user logged in with