summaryrefslogtreecommitdiff
path: root/src/api/bot/core.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-03-26 14:51:03 +0900
committerGitHub <noreply@github.com>2018-03-26 14:51:03 +0900
commit8d7d200efffcf9ffd49dba28f729a6e5b9c11f68 (patch)
tree10e3209cd77c3a08b488c08bd4b2f9d7e87de974 /src/api/bot/core.ts
parentMerge pull request #1293 from rinsuki/fix/using-hostname-insteadof-host (diff)
parentIntroduce account document to user document (diff)
downloadsharkey-8d7d200efffcf9ffd49dba28f729a6e5b9c11f68.tar.gz
sharkey-8d7d200efffcf9ffd49dba28f729a6e5b9c11f68.tar.bz2
sharkey-8d7d200efffcf9ffd49dba28f729a6e5b9c11f68.zip
Merge pull request #1287 from akihikodaki/account
Introduce account document to user document
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 1f07d4eee9..ad29f1003e 100644
--- a/src/api/bot/core.ts
+++ b/src/api/bot/core.ts
@@ -225,7 +225,7 @@ class SigninContext extends Context {
}
} else {
// Compare password
- const same = await bcrypt.compare(query, this.temporaryUser.password);
+ const same = await bcrypt.compare(query, this.temporaryUser.account.password);
if (same) {
this.bot.signin(this.temporaryUser);