Skip to content

bcrypt doesn't support $2b$ prefix #144

@anthonmanix

Description

@anthonmanix

I have an existing user table with bcrypt hashed passwords. When I try auth.atempt I get an error incompatible 2b identifier found in the hash. I tried comparing with the bcrypt package directly and it validates.

I saw you have this issue open at @phc/bcrypt. Maybe it's related?

Package version

"@adonisjs/auth": "^4.1.4",
"@adonisjs/core": "^5.0.0-preview-rc-1.5",

Node.js and npm version

node v14.0.0
npm 6.14.4

Sample Code (to reproduce the issue)

auth.atempt(email, password)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions