Merge pull request #1287 from akihikodaki/account
Introduce account document to user document
This commit is contained in:
commit
8d7d200eff
70 changed files with 355 additions and 280 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue