Closed remidosol closed 3 years ago
First, it can be created as discussion and 2nd the issues should go to the correct repo.
Is the password hashed using the AdonisJS Hash module? And also what is the length of the password column in the database.
Is the password hashed using the AdonisJS Hash module? And also what is the length of the password column in the database.
Yes, password hashed:
@beforeSave()
public static async hashPassword (user: User) {
if (user.$dirty.password) {
user.password = await Hash.make(user.password)
}
}
And the length and type of the password column is VARCHAR(254).
Can you share the complete password hash here?
Can you share the complete password hash here?
$argon2id$v=19$t=3;m=4096;p=1$AJZYQsiwc6GPLx++WBmAZw$nOz9R7mevmVIGHaOsMsqzFAb7sJKLufmmNbQByZSAMs
Can you share the config/hash.ts
file contents. Coz the hash generated by the AdonisJS hash module uses ,
as a separator and not the ;
. There seems to be something weird
Closing since no response from the issue reporter and not actionable as well
Package version
@adonisjs/ace: ^6.0.0, @adonisjs/auth: ^4.2.4, @adonisjs/core: ^5.0.0-preview-rc, @adonisjs/fold: ^6.0.0 @adonisjs/lucid: ^8.2.2
Node.js and npm version
Node: v14.5.0 npm: v6.14.6
Sample Code (to reproduce the issue)
My controller function:
I use POST Method for this process. The request body that I sent as JSON:
The error which I got: