GRN2-xx: Email and admin fix (#515)

* Email and admin fix

* Redirected super_admins to the admins page

* Small fix

* Update rooms_controller.rb
This commit is contained in:
farhatahmad
2019-05-09 18:07:18 -04:00
committed by Jesus Federico
parent 63ada8b3db
commit 75bde6a42d
10 changed files with 58 additions and 27 deletions

View File

@ -19,15 +19,19 @@
class UserMailer < ApplicationMailer
default from: Rails.configuration.smtp_sender
def verify_email(user, url)
def verify_email(user, url, image, color)
@user = user
@url = url
@image = image
@color = color
mail(to: @user.email, subject: t('landing.welcome'))
end
def password_reset(user, url)
def password_reset(user, url, image, color)
@user = user
@url = url
@image = image
@color = color
mail to: user.email, subject: t('reset_password.subtitle')
end
end