Improve performance

This commit is contained in:
syuilo 2017-11-08 14:58:48 +09:00
parent 253747ecfb
commit 93c0af613f
7 changed files with 12 additions and 8 deletions

View file

@ -232,7 +232,7 @@ class SigninContext extends Context {
}
} else {
// Compare password
const same = bcrypt.compareSync(query, this.temporaryUser.password);
const same = await bcrypt.compare(query, this.temporaryUser.password);
if (same) {
this.bot.signin(this.temporaryUser);