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/common | |
| parent | Merge pull request #1293 from rinsuki/fix/using-hostname-insteadof-host (diff) | |
| parent | Introduce account document to user document (diff) | |
| download | misskey-8d7d200efffcf9ffd49dba28f729a6e5b9c11f68.tar.gz misskey-8d7d200efffcf9ffd49dba28f729a6e5b9c11f68.tar.bz2 misskey-8d7d200efffcf9ffd49dba28f729a6e5b9c11f68.zip | |
Merge pull request #1287 from akihikodaki/account
Introduce account document to user document
Diffstat (limited to 'src/api/common')
| -rw-r--r-- | src/api/common/signin.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/common/signin.ts b/src/api/common/signin.ts index ec3dd80309..04c2cdac81 100644 --- a/src/api/common/signin.ts +++ b/src/api/common/signin.ts @@ -2,7 +2,7 @@ import config from '../../conf'; export default function(res, user, redirect: boolean) { const expires = 1000 * 60 * 60 * 24 * 365; // One Year - res.cookie('i', user.token, { + res.cookie('i', user.account.token, { path: '/', domain: `.${config.hostname}`, secure: config.url.substr(0, 5) === 'https', |