mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
🐛 Fixed next middleware call after magic link redirect
no issue
We changed the magic link route handling from setting global value to just redirecting to frontend in [this](d8d5d6b7d0 (diff-0d54454fd954b0203a71ec52df4bd4c0R96-R98)
) commit, but missed removing `next()` call which attempts to send response again causing Unhandled rejection error. This change simply removes the extra `next()` call
This commit is contained in:
parent
182a64dbc5
commit
e54a8b5112
1 changed files with 0 additions and 2 deletions
|
@ -94,8 +94,6 @@ const createSessionFromMagicLink = async function (req, res, next) {
|
|||
|
||||
// Do a standard 302 redirect
|
||||
res.redirect(redirectPath);
|
||||
|
||||
next();
|
||||
} catch (err) {
|
||||
common.logging.warn(err.message);
|
||||
return next();
|
||||
|
|
Loading…
Add table
Reference in a new issue