summaryrefslogtreecommitdiff
path: root/src/api/bot/core.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-08 14:58:48 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-08 14:58:48 +0900
commit93c0af613f97cd70dddd454150d8174c1dee3577 (patch)
tree1a092b84fc4bb4070ea2dda552f15eba6340c3f8 /src/api/bot/core.ts
parentFix bugs (diff)
downloadsharkey-93c0af613f97cd70dddd454150d8174c1dee3577.tar.gz
sharkey-93c0af613f97cd70dddd454150d8174c1dee3577.tar.bz2
sharkey-93c0af613f97cd70dddd454150d8174c1dee3577.zip
Improve performance
Diffstat (limited to 'src/api/bot/core.ts')
-rw-r--r--src/api/bot/core.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/bot/core.ts b/src/api/bot/core.ts
index 53fb18119e..8324390880 100644
--- a/src/api/bot/core.ts
+++ b/src/api/bot/core.ts
@@ -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);