diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-08 22:49:01 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-08 22:49:01 +0900 |
| commit | 48e7f76b2b6d11ef15903e1a9da9ddd3d9cbcb8e (patch) | |
| tree | a34c61ebebad9187816d0df15a7d4bb03b6c0e52 /src | |
| parent | Merge branch 'master' of https://github.com/syuilo/misskey (diff) | |
| download | sharkey-48e7f76b2b6d11ef15903e1a9da9ddd3d9cbcb8e.tar.gz sharkey-48e7f76b2b6d11ef15903e1a9da9ddd3d9cbcb8e.tar.bz2 sharkey-48e7f76b2b6d11ef15903e1a9da9ddd3d9cbcb8e.zip | |
[Server] toLowerCase :v:
Diffstat (limited to 'src')
| -rw-r--r-- | src/api/authenticate.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/authenticate.ts b/src/api/authenticate.ts index 8d3ed9c328..d4cc3fc41f 100644 --- a/src/api/authenticate.ts +++ b/src/api/authenticate.ts @@ -22,7 +22,7 @@ export interface IAuthContext { } export default (req: express.Request) => new Promise<IAuthContext>(async (resolve, reject) => { - const token = req.body['i']; + const token = req.body['i'] as string; if (token == null) { return resolve({ app: null, user: null, isSecure: false }); @@ -43,7 +43,7 @@ export default (req: express.Request) => new Promise<IAuthContext>(async (resolv }); } else { const accessToken = await AccessToken.findOne({ - hash: token + hash: token.toLowerCase() }); if (accessToken === null) { |