Changement des mots de passe dans le contexte stubbé car ils ne correspondaient pas aux règles du site
continuous-integration/drone/push Build is passing Details

pull/47/head
Johnny RATTON 1 year ago
parent 96c7e7d5fb
commit 9ceb4bed66

@ -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é !");
}
}

@ -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,

Loading…
Cancel
Save