0
0
Fork 0

Replace tutorial modal with welcome e-mail (#6273)

* Remove onboarding modal

* Welcome e-mail

* Send welcome e-mail after confirmation

* Remove obsolete translations
This commit is contained in:
Eugen Rochko 2018-01-18 19:17:25 +01:00 committed by GitHub
parent e56404be41
commit d799921c75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 261 additions and 632 deletions

View file

@ -54,4 +54,15 @@ class UserMailer < Devise::Mailer
mail to: @resource.email, subject: I18n.t('devise.mailer.email_changed.subject')
end
end
def welcome(user)
@resource = user
@instance = Rails.configuration.x.local_domain
return if @resource.disabled?
I18n.with_locale(@resource.locale || I18n.default_locale) do
mail to: @resource.email, subject: I18n.t('user_mailer.welcome.subject')
end
end
end