forked from External/greenlight
GRN2-6: Added the ability for admins to specify registration method (#520)
* Added the ability to invite users * Small bug fix * Added the ability to approve/decline users * Small bug fixes * More bug fixes * More minor changes * Final changes
This commit is contained in:
committed by
Jesus Federico
parent
adf4b68008
commit
720dac6012
@ -34,4 +34,21 @@ class UserMailer < ApplicationMailer
|
||||
@color = color
|
||||
mail to: user.email, subject: t('reset_password.subtitle')
|
||||
end
|
||||
|
||||
def invite_email(name, email, url, image, color)
|
||||
@name = name
|
||||
@email = email
|
||||
@url = url
|
||||
@image = image
|
||||
@color = color
|
||||
mail to: email, subject: t('mailer.user.invite.subject')
|
||||
end
|
||||
|
||||
def approve_user(user, url, image, color)
|
||||
@user = user
|
||||
@url = url
|
||||
@image = image
|
||||
@color = color
|
||||
mail to: user.email, subject: t('mailer.user.approve.subject')
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user