forked from External/greenlight
GRN2-6: Notify admins when a approve/invite user signs up (#538)
* Notify admins when a approve/invite user signs up * Fix formating * Uses admins_url variable
This commit is contained in:
committed by
Jesus Federico
parent
83a9edf81d
commit
f88d67f6fb
@ -67,4 +67,22 @@ class UserMailer < ApplicationMailer
|
||||
@color = color
|
||||
mail to: user.email, subject: t('mailer.user.approve.subject')
|
||||
end
|
||||
|
||||
def approval_user_signup(user, url, image, color, admin_emails)
|
||||
@user = user
|
||||
@url = url
|
||||
@image = image
|
||||
@color = color
|
||||
|
||||
mail to: admin_emails, subject: t('mailer.user.approve.signup.subject')
|
||||
end
|
||||
|
||||
def invite_user_signup(user, url, image, color, admin_emails)
|
||||
@user = user
|
||||
@url = url
|
||||
@image = image
|
||||
@color = color
|
||||
|
||||
mail to: admin_emails, subject: t('mailer.user.invite.signup.subject')
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user