mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
fix login api for status page
This commit is contained in:
parent
65720cd818
commit
3c22648eb3
@ -340,13 +340,17 @@ router.post(
|
||||
OneUptimeDate.getSecondsInDays(new PositiveNumber(30))
|
||||
);
|
||||
|
||||
return Response.sendJsonObjectResponse(req, res, {
|
||||
token: token,
|
||||
user: JSONFunctions.toJSON(
|
||||
alreadySavedUser,
|
||||
StatusPagePrivateUser
|
||||
),
|
||||
});
|
||||
return Response.sendEntityResponse(
|
||||
req,
|
||||
res,
|
||||
alreadySavedUser,
|
||||
StatusPagePrivateUser,
|
||||
{
|
||||
miscData: {
|
||||
token,
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
throw new BadDataException(
|
||||
'Invalid login: Email or password does not match.'
|
||||
|
Loading…
Reference in New Issue
Block a user