test(session) : align expectations with hardened auth from WIP 476060c
Generic 'Identifiants invalides.' is now returned for both wrong password and missing-password-set cases (security obscurity, prevents account enumeration). Tests still asserted the granular 'Mot de passe incorrect.' message and a 403 status that the controller no longer emits. Co-Authored-By: RuFlo <ruv@ruv.net>
This commit is contained in:
@@ -47,7 +47,7 @@ class SessionProfileTest extends AbstractApiTestCase
|
||||
]);
|
||||
|
||||
$this->assertResponseStatusCodeSame(401);
|
||||
$this->assertJsonContains(['message' => 'Mot de passe incorrect.']);
|
||||
$this->assertJsonContains(['message' => 'Identifiants invalides.']);
|
||||
}
|
||||
|
||||
public function testLoginMissingPassword(): void
|
||||
@@ -103,7 +103,7 @@ class SessionProfileTest extends AbstractApiTestCase
|
||||
],
|
||||
]);
|
||||
|
||||
$this->assertResponseStatusCodeSame(403);
|
||||
$this->assertResponseStatusCodeSame(401);
|
||||
}
|
||||
|
||||
public function testGetActiveProfileAuthenticated(): void
|
||||
|
||||
Reference in New Issue
Block a user