diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-03-26 14:51:03 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-26 14:51:03 +0900 |
| commit | 8d7d200efffcf9ffd49dba28f729a6e5b9c11f68 (patch) | |
| tree | 10e3209cd77c3a08b488c08bd4b2f9d7e87de974 /src/api/authenticate.ts | |
| parent | Merge pull request #1293 from rinsuki/fix/using-hostname-insteadof-host (diff) | |
| parent | Introduce account document to user document (diff) | |
| download | sharkey-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/authenticate.ts')
| -rw-r--r-- | src/api/authenticate.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/authenticate.ts b/src/api/authenticate.ts index b289959ac1..537c3d1e1f 100644 --- a/src/api/authenticate.ts +++ b/src/api/authenticate.ts @@ -34,7 +34,7 @@ export default (req: express.Request) => new Promise<IAuthContext>(async (resolv if (isNativeToken(token)) { const user: IUser = await User - .findOne({ token: token }); + .findOne({ 'account.token': token }); if (user === null) { return reject('user not found'); |