You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: