Skip to content

Commit 28b63f4

Browse files
committed
Release 5.1.3.
1 parent 3a4f978 commit 28b63f4

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

docs/changelog.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ The API stability/deprecation policy for ``pwned-passwords-django`` is as follow
6464
Releases under DjangoVer
6565
------------------------
6666

67+
Version 5.1.3
68+
~~~~~~~~~~~~~
69+
70+
Released March 2025
71+
72+
* Ensured multi-value POST payloads are correctly checked by the middleware. This is
73+
likely an edge case since even when multiple submissions of a password are desired
74+
they are typically differently-named fields in the payload (i.e., a "password" and
75+
"confirm password" field in a signup or password change form), but for completeness'
76+
sake they should still be handled correctly.
77+
78+
6779
Version 5.1.2
6880
~~~~~~~~~~~~~
6981

@@ -73,6 +85,7 @@ Released March 2025
7385
pass the wrong value to the fallback validator
7486
<https://github.com/ubernostrum/pwned-passwords-django/pull/43>`_.
7587

88+
7689
Version 5.1.1
7790
~~~~~~~~~~~~~
7891

docs/spelling_wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ pwned
2323
Quickstart
2424
regex
2525
serializable
26+
signup
2627
validator
2728
validators

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ keywords = ["django", "security", "passwords", "auth", "authentication"]
3535
license = {text = "BSD-3-Clause"}
3636
readme = "README.rst"
3737
requires-python = ">=3.9"
38-
version = "5.1.2"
38+
version = "5.1.3"
3939

4040
[dependency-groups]
4141
tests = ["nox"]

tests/test_middleware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ def test_multiple_values_bad_password(self):
307307
get_random_string(length=20),
308308
# Django's QueryDict.__getitem__() returns the last value for a
309309
# multi-valued key, so to properly test checking of multi-value
310-
# submissions the bad value needs to occur before the last
311-
# position.
310+
# submissions, the bad value has to occur somewhere other than
311+
# the last position.
312312
"password",
313313
get_random_string(length=10),
314314
]

0 commit comments

Comments
 (0)