Adds a missing XSRF token on Xnet's directory synchronization page.
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Wed, 18 Feb 2009 12:38:48 +0000 (13:38 +0100)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Wed, 18 Feb 2009 12:38:48 +0000 (13:38 +0100)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
templates/xnetgrp/annuaire-admin.tpl

index bccc36f..dd33b99 100644 (file)
@@ -26,7 +26,7 @@
 
 <ul>
   {foreach from=$not_in_group_x item=n}
-  <li>{$n} [<a href='{$platal->ns}member/new/{$n}' class='popup'>l'inscrire</a>]</li>
+  <li>{$n} [<a href='{$platal->ns}member/new/{$n}?token={xsrf_token}' class='popup'>l'inscrire</a>]</li>
   {foreachelse}
   <li><em>tous les polytechniciens présents sur les listes sont inscrits à l'annuaire du groupe.</em></li>
   {/foreach}
@@ -35,7 +35,7 @@
 <h2>Non polytechniciens</h2>
 <ul>
   {foreach from=$not_in_group_ext item=n}
-  <li>{$n} [<a href='{$platal->ns}member/new/{$n}' class='popup'>l'inscrire</a>]</li>
+  <li>{$n} [<a href='{$platal->ns}member/new/{$n}?token={xsrf_token}' class='popup'>l'inscrire</a>]</li>
   {foreachelse}
   <li><em>tous les non-polytechniciens présents sur les listes sont inscrits à l'annuaire du groupe.</em></li>
   {/foreach}