mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Allowed newer tokens to refresh member session
no-issue This is so that an email sent after a payment is made will refresh the session.
This commit is contained in:
parent
a85328f0e5
commit
d81e1bf1c3
1 changed files with 0 additions and 3 deletions
|
@ -178,9 +178,6 @@ module.exports = function setupSiteApp(options = {}) {
|
||||||
if (!req.url.includes('token=')) {
|
if (!req.url.includes('token=')) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
if (req.member) {
|
|
||||||
return next();
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
const member = await membersService.ssr.exchangeTokenForSession(req, res);
|
const member = await membersService.ssr.exchangeTokenForSession(req, res);
|
||||||
Object.assign(req, {member});
|
Object.assign(req, {member});
|
||||||
|
|
Loading…
Add table
Reference in a new issue