Compare commits

...

1 Commits

Author SHA1 Message Date
Thomas MONCHICOURT 71259c40c6 Feat : Ajout d’un col list user + action resend confirm mail #6151 @0h20 2018-04-09 14:49:14 +02:00
2 changed files with 19 additions and 0 deletions
@@ -22,6 +22,7 @@
<th>Nom</th>
<th>Prénom</th>
<th class="col-md-3">Email</th>
<th>Etat</th>
<th>Roles</th>
<th>Action</th>
</tr>
@@ -33,6 +34,10 @@
<td>{{ u.lastname }}</td>
<td>{{ u.firstname }}</td>
<td>{{ u.email }}</td>
<td>{% if u.enabled %} Activé
{% else %} Désactivé <br />
<a href="{{ path('admin_user_resend',{'id':u.id}) }}">Renvoyer le mail de confirmation</a>
{% endif %}</td>
<td>
{% for r in u.roles %}
{% if r != "ROLE_USER" %}
@@ -63,6 +63,20 @@ class TalentController extends Controller
));
}
/**
* @Route("/admin/config/user/{id}/resend", name="admin_user_resend")
*/
public function adminUserResendAction(Request $request, $id)
{
$userManager = $this->get('fos_user.user_manager');;
$user = $userManager->findUserBy(array('id' => $id));
$mailer = $this->get('fos_user.mailer');
$mailer->sendConfirmationEmailMessage($user);
return $this->redirectToRoute('admin_config_user');
}
/**
* @Route("/admin/config/user/{id}/delete", name="admin_user_delete")
*/