Skip to content

Commit

Permalink
fix: 删除 secure
Browse files Browse the repository at this point in the history
  • Loading branch information
Mxmilu666 committed Aug 29, 2024
1 parent 6efa60a commit 2a3d926
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@ export class Server {

res.cookie('token', token, {
expires: new Date(Date.now() + 86400000), // 24小时后过期
secure: true,
path: '/'
});

if (this.db.getEntity<UserEntity>(UserEntity, user.id)?.isSuperUser) {
Expand All @@ -240,8 +238,6 @@ export class Server {
}, "admin", 60 * 60 * 24);
res.cookie('adminToken', adminToken, {
expires: new Date(Date.now() + 86400000), // 24小时后过期
secure: true,
path: '/'
});
}

Expand Down

0 comments on commit 2a3d926

Please sign in to comment.