Open bonkboykz opened 3 years ago
Can confirm this happens and this is weird.
This happens not only when doing npx nestjs-admin createAdminUser
but when creating admin user from admin panel as well.
After some debugging I found out that the problem is with the entity listener that is being triggered at least two times, the hashed password is hashed again. So when you try to compare with bcrypt the password and the hash it fails
Reproduction steps:
npx nestjs-admin createAdminUser
(ex. user:test
, password:test
)$2a$12$jjckji7plcEhIuG2sUuYjeeei2LqgdFmGruPJWzQELI7bo36FhC9.
)bcryptjs
I think the issue is related to the #215, #213, and #221