aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(static)/login
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(static)/login')
-rw-r--r--src/routes/(static)/login/+page.server.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/routes/(static)/login/+page.server.ts b/src/routes/(static)/login/+page.server.ts
index e4fb3815..eb0ad0bf 100644
--- a/src/routes/(static)/login/+page.server.ts
+++ b/src/routes/(static)/login/+page.server.ts
@@ -28,8 +28,8 @@ export const actions = {
await login(
user,
cookies,
- request.headers.get("cf-connecting-ip"),
- request.headers.get("host"),
+ request.headers.get("cf-connecting-ip") ?? "",
+ request.headers.get("host") ?? "",
);
} catch (e) {
const { message } = e as Error;
@@ -53,8 +53,8 @@ export const actions = {
headers: {
"content-type": "application/json",
accept: "application/json",
- "cf-connecting-ip": request.headers.get("cf-connecting-ip"),
- "x-forwarded-host": request.headers.get("host"),
+ "cf-connecting-ip": request.headers.get("cf-connecting-ip") ?? "",
+ "x-forwarded-host": request.headers.get("host") ?? "",
},
});