Commit bae1cd4d authored by jlaval's avatar jlaval

Permet d'afficher le mot de passe d'un nouvel utilisateur cree par l'interface...

Permet d'afficher le mot de passe d'un nouvel utilisateur cree par l'interface cotisation pour pouvoir lui filer de suite sans forcement attendre l'activation de l'addresse utbm par le CRI.
parent 19fb0b0f
...@@ -36,6 +36,7 @@ require_once($topdir. "include/cts/special.inc.php"); ...@@ -36,6 +36,7 @@ require_once($topdir. "include/cts/special.inc.php");
require_once($topdir . "include/entities/ville.inc.php"); require_once($topdir . "include/entities/ville.inc.php");
require_once($topdir . "include/entities/pays.inc.php"); require_once($topdir . "include/entities/pays.inc.php");
require_once($topdir. "include/entities/partenariat_utl.inc.php"); require_once($topdir. "include/entities/partenariat_utl.inc.php");
require_once($topdir. "include/cts/fsearchcache.inc.php");
$site = new site (); $site = new site ();
...@@ -673,11 +674,11 @@ elseif ($_REQUEST["action"] == "newstudent") ...@@ -673,11 +674,11 @@ elseif ($_REQUEST["action"] == "newstudent")
exit(); exit();
} }
$pass = null;
$user->new_utbm_user($_REQUEST['nom'], $user->new_utbm_user($_REQUEST['nom'],
$_REQUEST['prenom'], $_REQUEST['prenom'],
$_REQUEST['emailutbm'], $_REQUEST['emailutbm'], $_REQUEST['emailutbm'], $_REQUEST['emailutbm'],
null,null,null,null, $pass,null,null,null,
$etudiant, $etudiant,
$_REQUEST['droit_image']==true, $_REQUEST['droit_image']==true,
$nom_ecole); $nom_ecole);
...@@ -694,6 +695,8 @@ elseif ($_REQUEST["action"] == "newstudent") ...@@ -694,6 +695,8 @@ elseif ($_REQUEST["action"] == "newstudent")
else else
{ {
$user->load_all_extra(); $user->load_all_extra();
$pcts = new contents("Informations de creation");
$pcts->add_paragraph ('Nouvel utilisateur cree, mot de passe temporaire : '.$pass);
$cts = new contents("Mise à jour des infos indispensable pour l'impression de la carte AE"); $cts = new contents("Mise à jour des infos indispensable pour l'impression de la carte AE");
$frm = new form("infos","cotisations.php?id_utilisateur=".$user->id,true,"POST",null); $frm = new form("infos","cotisations.php?id_utilisateur=".$user->id,true,"POST",null);
$frm->add_hidden("action","savecotiz"); $frm->add_hidden("action","savecotiz");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment