mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[PR #1690] [MERGED] Argon2 support #2283
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#2283
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/modoboa/modoboa/pull/1690
Author: @Arvedui
Created: 3/3/2019
Status: ✅ Merged
Merged: 3/19/2019
Merged by: @tonioo
Base:
master← Head:argon2📝 Commits (6)
ab0926fadd facilities to rehash on login passwords if parameters change6145965Implement support for the argon2 password hashc4108a1add basic test for argon2 hash3e072deadd test for rehash on login for parameter update0a7a7a1fixup! Implement support for the argon2 password hashbd2ad0cfixup! add test for rehash on login for parameter update📊 Changes
6 files changed (+113 additions, -3 deletions)
View changed files
📝
modoboa/core/password_hashers/__init__.py(+2 -1)📝
modoboa/core/password_hashers/advanced.py(+49 -2)📝
modoboa/core/password_hashers/base.py(+10 -0)📝
modoboa/core/tests/test_authentication.py(+43 -0)📝
modoboa/core/views/auth.py(+8 -0)📝
requirements.txt(+1 -0)📄 Description
Description of the issue/feature this PR addresses:
This PR implements support for the argon2 password hash and adds the ability to rehash passwords not only for schema changes but also for parameter changes. Right now the later is only implemented for argon2 hashes, but could also be interesting for sha{256,512}crypt hashes.
Current behavior before PR:
no argon2 support
Desired behavior after PR is merged:
working argon2 support with the ability to rehash password for parameter update on login
I have not (yet) written any documentation about the argon2 functionality. Because I'm unsure where it would fit best, any ideas?
#1673
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.