forked from External/greenlight
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:
committed by
Jesus Federico
parent
63ada8b3db
commit
75bde6a42d
@ -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
|
||||
|
Reference in New Issue
Block a user