X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fxnetgrp.php;h=85009c336d19167dcf76c1a81c9b9ed1b952426f;hb=90df25304c13db3c9c6e4d29e0a4b6044e99fa97;hp=79496d295750b8f9242fc564c80b911424e0d8c2;hpb=567553ac69875e62476d1328752ea868c9e30dfb;p=platal.git diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index 79496d2..85009c3 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -221,7 +221,7 @@ class XnetGrpModule extends PLModule global $globals; $page->changeTpl('xnetgrp/edit.tpl'); - if (Post::has('submit')) { + if (Post::has('submit') && S::has_xsrf_token()) { if (S::has_perms()) { if (Post::v('mail_domain') && (strstr(Post::v('mail_domain'), '.') === false)) { $page->trig("le domaine doit être un FQDN (aucune modif effectuée) !!!"); @@ -272,6 +272,8 @@ class XnetGrpModule extends PLModule } pl_redirect('../'.Post::v('diminutif', $globals->asso('diminutif')).'/edit'); + } else if (Post::has('submit')) { + $page->trig("La mise à jour des paramètres du groupe a échouée, merci de réssayer."); } if (S::has_perms()) {