profile: send an email when the account is already taken
This commit is contained in:
parent
80074d6d82
commit
03fc555edf
6 changed files with 67 additions and 3 deletions
|
@ -3,6 +3,10 @@ class UserMailerPreview < ActionMailer::Preview
|
|||
UserMailer.new_account_warning(user)
|
||||
end
|
||||
|
||||
def account_already_taken
|
||||
UserMailer.account_already_taken(user, 'dircab@territoires.gouv.fr')
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue