From 599d616c34765a5f38b73886aa6eccf816086067 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Tue, 3 Feb 2026 04:47:44 +0000 Subject: [PATCH] a --- Js/fonctions.js | 20 ++++++++++++++++++++ Vue/gabarit.php | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index c503951..ac3a8b9 100644 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -45931,3 +45931,23 @@ function creer_user_rh_client() } }); } + +function verifMailValeur(v_mail) +{ + if (v_mail.length==0) + { + return true; + } + else + { + var regex = /^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$/; + if(!regex.test(v_mail)) + { + return false; + } + else + { + return true; + } + } +} diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 4219431..7395d43 100644 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -261,7 +261,7 @@ controlerPlafondBeneficiaire : - +