Browse Source

Update email taken string (#681)

pull/687/head
baarkerlounger 3 years ago committed by GitHub
parent
commit
f0c0b446da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/mailers/devise_notify_mailer.rb
  2. 2
      config/locales/en.yml

2
app/mailers/devise_notify_mailer.rb

@ -44,6 +44,8 @@ class DeviseNotifyMailer < Devise::Mailer
end end
def intercept_send?(email) def intercept_send?(email)
return false unless email_allowlist
email_domain = email.split("@").last.downcase email_domain = email.split("@").last.downcase
!(Rails.env.production? || Rails.env.test?) && email_allowlist.exclude?(email_domain) !(Rails.env.production? || Rails.env.test?) && email_allowlist.exclude?(email_domain)
end end

2
config/locales/en.yml

@ -52,7 +52,7 @@ en:
outside_collection_window: "Date must be within the current collection windows" outside_collection_window: "Date must be within the current collection windows"
postcode: "Enter a postcode in the correct format, for example AA1 1AA" postcode: "Enter a postcode in the correct format, for example AA1 1AA"
email: email:
taken: "Email already exists" taken: "Enter an email address that hasn’t already been used to sign up"
invalid: "Enter an email address in the correct format, like name@example.com" invalid: "Enter an email address in the correct format, like name@example.com"
blank: "Enter an email address" blank: "Enter an email address"
role: role:

Loading…
Cancel
Save