From 9ceb4bed66e2145fcfc20f39b0942884f201bcf0 Mon Sep 17 00:00:00 2001 From: "Johnny.Ratton" Date: Thu, 21 Mar 2024 10:53:27 +0100 Subject: [PATCH] =?UTF-8?q?Changement=20des=20mots=20de=20passe=20dans=20l?= =?UTF-8?q?e=20contexte=20stubb=C3=A9=20car=20ils=20ne=20correspondaient?= =?UTF-8?q?=20pas=20aux=20r=C3=A8gles=20du=20site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- API_SQLuedo/API/Controllers/UserController.cs | 2 +- API_SQLuedo/StubbedContextLib/StubbedContext.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/API_SQLuedo/API/Controllers/UserController.cs b/API_SQLuedo/API/Controllers/UserController.cs index fb57815..786186a 100644 --- a/API_SQLuedo/API/Controllers/UserController.cs +++ b/API_SQLuedo/API/Controllers/UserController.cs @@ -59,7 +59,7 @@ namespace API.Controllers catch (ArgumentException) { logger.LogError("[ERREUR] Aucun utilisateur trouvé avec l'username {username}.", username); - return NotFound(); + return NotFound("Utilisateur non trouvé !"); } } diff --git a/API_SQLuedo/StubbedContextLib/StubbedContext.cs b/API_SQLuedo/StubbedContextLib/StubbedContext.cs index db6995b..aca9691 100644 --- a/API_SQLuedo/StubbedContextLib/StubbedContext.cs +++ b/API_SQLuedo/StubbedContextLib/StubbedContext.cs @@ -21,7 +21,7 @@ public class StubbedContext : UserDbContext Id = 1, Username = "johnny", Password = Convert.ToBase64String(KeyDerivation.Pbkdf2( - password: "motdepasse", + password: "Motdepasse", salt: RandomNumberGenerator.GetBytes(128 / 8), prf: KeyDerivationPrf.HMACSHA256, iterationCount: 100000, @@ -34,7 +34,7 @@ public class StubbedContext : UserDbContext Id = 2, Username = "maxime", Password = Convert.ToBase64String(KeyDerivation.Pbkdf2( - password: "motdepasse", + password: "Motdepasse", salt: RandomNumberGenerator.GetBytes(128 / 8), prf: KeyDerivationPrf.HMACSHA256, iterationCount: 100000, @@ -47,7 +47,7 @@ public class StubbedContext : UserDbContext Id = 3, Username = "clement", Password = Convert.ToBase64String(KeyDerivation.Pbkdf2( - password: "motdepasse", + password: "Motdepasse", salt: RandomNumberGenerator.GetBytes(128 / 8), prf: KeyDerivationPrf.HMACSHA256, iterationCount: 100000, @@ -60,7 +60,7 @@ public class StubbedContext : UserDbContext Id = 4, Username = "erwan", Password = Convert.ToBase64String(KeyDerivation.Pbkdf2( - password: "motdepasse", + password: "Motdepasse", salt: RandomNumberGenerator.GetBytes(128 / 8), prf: KeyDerivationPrf.HMACSHA256, iterationCount: 100000, @@ -73,7 +73,7 @@ public class StubbedContext : UserDbContext Id = 5, Username = "victor", Password = Convert.ToBase64String(KeyDerivation.Pbkdf2( - password: "motdepasse", + password: "Motdepasse", salt: RandomNumberGenerator.GetBytes(128 / 8), prf: KeyDerivationPrf.HMACSHA256, iterationCount: 100000,