app/models/setting.rb
# Check User email by user_email_suffixes setting
Check User email by user_email_suffixes setting
Check User email by user_email_suffixes setting
def valid_user_email?(email)
      return false if email.blank?
      return true if user_email_suffixes.blank?
      found = false
      user_email_suffixes.each do |suffix|
        if email.downcase.end_with?(suffix.downcase)
          found = true
          break
        end
      end
      found
    end
def valid_user_email? ( email ) return false if email . blank? return true if user_email_suffixes . blank? found = false user_email_suffixes . each do | suffix | if email . downcase . end_with? ( suffix . downcase ) found = true break end end found end
Check User email by user_email_suffixes setting
Check User email by user_email_suffixes setting
email
<not_specific>