Opened 4 hours ago
Last modified 43 minutes ago
#36226 new Bug
Only PBKDF2PasswordHasher supports str and bytes password
Reported by: | Jason Held | Owned by: | |
---|---|---|---|
Component: | contrib.auth | Version: | 5.1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The other password hashers in their encode
method all at some point call .encode
on their password in some way. Thus, the other hasher classes, in the django source code, do not support the API and docstring of make_password
.
This seems pretty easy to fix on the whole and I'd be happy to make a PR for it.
Note:
See TracTickets
for help on using tickets.
Replicated thank you! PRs welcome
tests/auth_tests/test_hashers.py