Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bcrypt 的 compare 方法,为什么在 TODO 中建议改成异步的调用方式,同步的调用方式有什么问题么? #176

Open
qinhaitao97 opened this issue Dec 13, 2021 · 0 comments

Comments

@qinhaitao97
Copy link

const passhash = existUser.pass;
// TODO: change to async compare
const equal = ctx.helper.bcompare(password, passhash);
// 密码不匹配
if (!equal) {
return null;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant