Skip to content

fix: add support for bcrypt "$2b$" format in import password validation - #2850

Open
FreddyDevelop wants to merge 1 commit into
mainfrom
allow-different-bcrypt-format
Open

fix: add support for bcrypt "$2b$" format in import password validation#2850
FreddyDevelop wants to merge 1 commit into
mainfrom
allow-different-bcrypt-format

Conversation

@FreddyDevelop

Copy link
Copy Markdown
Contributor

Description

The 2a and 2b format are basically the same and as you can see in the source code the CompareHashAndPassword function only checks if the major version (2) matches and not the minor version (a or b)

Tests

Import a password with a different version (2b) and check that login succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants