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 : - +