diff --git a/app/Http/Controllers/LoginController.php b/app/Http/Controllers/LoginController.php index c85db68..da4b774 100644 --- a/app/Http/Controllers/LoginController.php +++ b/app/Http/Controllers/LoginController.php @@ -74,7 +74,7 @@ class LoginController extends Controller $user = Utilisateur::create([ 'Pseudo' => $request->Pseudo, 'Email' => $request->Email, - 'MotDePasse' => $request->MotDePasse, + 'MotDePasse' => Hash::make($request->MotDePasse), 'ID_Role' => $roleUtilisateur->ID_Role, 'Statut' => 'Actif', ]); diff --git a/app/Models/Utilisateur.php b/app/Models/Utilisateur.php index 27c557e..23c2252 100644 --- a/app/Models/Utilisateur.php +++ b/app/Models/Utilisateur.php @@ -5,6 +5,15 @@ namespace App\Models; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; +/** + * @property int $ID_Utilisateur + * @property string $Email + * @property string $MotDePasse + * @property string $Pseudo + * @property string $Statut + * @property int $ID_Role + * @property \Illuminate\Support\Carbon $DateInscription + */ class Utilisateur extends Authenticatable { use Notifiable;