AdonisJS 5: Solution for use (adonis 4 and laravel) compatible bcrypt #1549
reg2005
started this conversation in
Show and tell
Replies: 3 comments 9 replies
-
@reg2005 That's great. Can you create a PR for the same in the hash module? We can basically enable this using the legacy mode. For example: The config will accept an additional param |
Beta Was this translation helpful? Give feedback.
8 replies
-
@lucaswx2 maybe i'm late, but if you have the problem with this.$container, the correct syntax is this.app.container. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I migrated my old website to Adonis 5. I found what I can't sign in my site, because Adonis 5 use another bcrypt library than Adonis 4
I got error:
Compare one password in between versions
AdonisJS 4
AdonisJS 5:
It's not compatible.
My solution:
Add file to libs/Bcrypt.ts:
And make provider like this:
That's all 👋
Beta Was this translation helpful? Give feedback.
All reactions