FEATURE: send set password instructions after invite redemption

This commit is contained in:
Arpit Jalan
2014-10-10 21:17:52 +05:30
parent e8637344c3
commit 861f321263
5 changed files with 68 additions and 0 deletions

View File

@@ -42,4 +42,13 @@ class InviteMailer < ActionMailer::Base
end
def send_password_instructions(user)
if user.present?
email_token = user.email_tokens.create(email: user.email)
build_email(user.email,
template: 'invite_password_instructions',
email_token: email_token.token)
end
end
end