mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
parent
923969b38c
commit
b4096f412c
1 changed files with 4 additions and 1 deletions
|
@ -49,7 +49,10 @@ const getSession = (req, res, next) => {
|
|||
};
|
||||
|
||||
const createSession = (req, res, next) => {
|
||||
getSession(req, res, function () {
|
||||
getSession(req, res, function (err) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
const origin = getOrigin(req);
|
||||
if (!origin) {
|
||||
return next(new common.errors.BadRequestError({
|
||||
|
|
Loading…
Reference in a new issue