[Fix #1096] Add administration email in new administrateur email
This commit is contained in:
parent
39dc5718c2
commit
fab00b1674
3 changed files with 5 additions and 2 deletions
|
@ -18,7 +18,7 @@ class AdministrationsController < ApplicationController
|
|||
|
||||
if admin.save
|
||||
flash.notice = "Administrateur créé"
|
||||
NewAdminMailer.new_admin_email(admin).deliver_now!
|
||||
NewAdminMailer.new_admin_email(admin, current_administration).deliver_now!
|
||||
else
|
||||
flash.alert = admin.errors.full_messages
|
||||
end
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class NewAdminMailer < ApplicationMailer
|
||||
def new_admin_email admin
|
||||
def new_admin_email admin, administration
|
||||
@admin = admin
|
||||
@administration = administration
|
||||
|
||||
mail(to: 'tech@tps.apientreprise.fr',
|
||||
subject: "Création d'un compte Admin TPS")
|
||||
|
|
|
@ -4,6 +4,8 @@ Plateforme : <%= TPS::Application::URL %>
|
|||
|
||||
Login : <%= @admin.email %>
|
||||
|
||||
Créateur : <%= @administration.email %>
|
||||
|
||||
Bonne journée,
|
||||
|
||||
L'équipe Téléprocédures Simplifiées
|
||||
|
|
Loading…
Reference in a new issue