fix(auth): vérification promote_pending_email, purge tokens change-email, fallback login (#73)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Colin Maudry
2026-06-24 22:25:34 +02:00
parent dba8669f4b
commit ff7aaa54cd
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ def test_login_success(client, users_db_path):
data={"email": "a@b.c", "password": "password12"},
)
assert resp.status_code == 302
assert resp.headers["Location"].endswith("/compte")
assert resp.headers["Location"].endswith("/compte/admin")
def test_login_wrong_password(client, users_db_path):
@@ -63,7 +63,7 @@ def test_login_rejects_absolute_next(client, users_db_path):
"next": "https://evil.com",
},
)
assert resp.headers["Location"].endswith("/compte")
assert resp.headers["Location"].endswith("/compte/admin")
def test_logout_clears_session(client, users_db_path):