From 7a9071df19f8fc4e45996cca051e462f2b18e0a7 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 11 Apr 2016 16:26:18 +0200 Subject: [PATCH] =?UTF-8?q?ne=20pas=20emp=C3=AAcher=20les=20points=20dans?= =?UTF-8?q?=20les=20uids,=20autoriser=20les=20tirets=20et=20les=20soulign?= =?UTF-8?q?=C3=A9s=20aussi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- local/conf/LSobjects/config.LSobjects.LSsupannPerson.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/local/conf/LSobjects/config.LSobjects.LSsupannPerson.php b/local/conf/LSobjects/config.LSobjects.LSsupannPerson.php index f9e3624..3187489 100644 --- a/local/conf/LSobjects/config.LSobjects.LSsupannPerson.php +++ b/local/conf/LSobjects/config.LSobjects.LSsupannPerson.php @@ -182,13 +182,16 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array ( /* ----------- start -----------*/ 'uid' => array ( 'label' => 'Identifiant', - 'help_info' => 'L\'identifiant ne doit contenir que des lettres ou des chiffres.', + 'help_info' => 'L\'identifiant ne doit contenir que des lettres , des chiffres, des tirets, des underscores ou des points.', 'ldap_type' => 'ascii', 'html_type' => 'text', 'required' => 1, 'check_data' => array ( - 'alphanumeric' => array( - 'msg' => 'L\'identifiant ne doit contenir que des lettres ou des chiffres.', + 'regex' => array( + 'msg' => "L'identifiant ne doit contenir que des lettres , des chiffres, des tirets, des underscores ou des points.", + 'params' => array( + 'regex' => '/^[-_.a-zA-Z0-9]+$/', + ), ), ), 'validation' => array (