From 696e5243033cd8eb29e2b4befc12e34b5e37f159 Mon Sep 17 00:00:00 2001 From: ImNicolasTheDev Date: Sun, 7 May 2023 20:52:42 +0200 Subject: [PATCH] Remove bad copy pasted code --- Sources/Modèle/User.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sources/Modèle/User.cs b/Sources/Modèle/User.cs index 7c00f21..e3d0ae1 100644 --- a/Sources/Modèle/User.cs +++ b/Sources/Modèle/User.cs @@ -45,10 +45,6 @@ namespace Model Prenom = prenom; Mdp = mdp; monstresDejaVu = monstresVus; - if (string.IsNullOrWhiteSpace(pseudo) || string.IsNullOrWhiteSpace(nom) || string.IsNullOrWhiteSpace(prenom) || string.IsNullOrWhiteSpace(mdp)) - { - throw new ArgumentException("Un User doit avoir un pseudo, un nom, un prénom et un mot de passe au minimum!"); - } } public bool verifyPssw(string pssw)