diff --git a/core/module/user/ressource/template.csv b/core/module/user/ressource/template.csv index 3c52855..05729e3 100644 --- a/core/module/user/ressource/template.csv +++ b/core/module/user/ressource/template.csv @@ -1,5 +1,5 @@ -id;nom;prenom;email;groupe -jm1;Membre1;Jean;jean.membre1@email.fr;1 -am2;Membre2;Albert;albert.membre2@email.fr;1 -jrediteur;Editeur;Robert;robert.editeur@email.fr;2 -padmin;Dupuis;Admin;paul.admin@email.fr;3 +id;nom;prenom;email;groupe;passe +jm1;Membre1;Jean;jean.membre1@email.fr;1;jEan05 +am2;Membre2;Albert;albert.membre2@email.fr;1;alBertAG +jrediteur;Editeur;Robert;robert.editeur@email.fr;2;roBert54 +padmin;Dupuis;Admin;paul.admin@email.fr;3;paul;32Mirabel32 diff --git a/core/module/user/user.php b/core/module/user/user.php index de0366a..a695124 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -1057,11 +1057,13 @@ class user extends common and array_key_exists('nom', $item) and array_key_exists('groupe', $item) and array_key_exists('email', $item) + and array_key_exists('passe', $item) and $item['nom'] and $item['prenom'] and $item['id'] and $item['email'] and $item['groupe'] + and $item['passe'] ) { // Validation du groupe $item['groupe'] = (int) $item['groupe']; @@ -1098,7 +1100,7 @@ class user extends common 'pseudo' => $item['prenom'], 'signature' => 1, // Pseudo - 'password' => uniqid(), + 'password' => helper::filter($item['passe'],helper::FILTER_PASSWORD), // A modifier à la première connexion "connectFail" => null, "connectTimeout" => null,