From 93c0af613f97cd70dddd454150d8174c1dee3577 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 8 Nov 2017 14:58:48 +0900 Subject: Improve performance --- src/api/bot/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/bot/core.ts') 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); -- cgit v1.2.3-freya