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,