pchstr must contain a $ as first char #1862
-
I'm trying to create an authentication method, but, I'm getting an error while trying to login, apparently from the phc-argon2 package. It looks like that the password isn't being hashed at all, because that error is thrown while trying to authenticate Adonis don't provide me any other error screens besides:
What should I do to properly hash the password from the user input at the register function? Register function:
Login function:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @GPoleto27! 👋 Can you please dump |
Beta Was this translation helpful? Give feedback.
Hey @GPoleto27! 👋
Can you please dump
userDetails
to see if you correctly have thepassword
?Also, if you are using all defaults from
@adonisjs/auth
packages, the password is hashed when saving a model.