Fix build error, add more verbose ip error

This commit is contained in:
NotAlexNoyle committed 2025-05-19 09:55:40 +00:00
1 parent 100c609c0a
commit a188cb1bed
2 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -1,7 +1,6 @@
<script lang="ts">
import type { AppealEntry, PunishEntry } from "./types";
import { getReadableMillis, getReadableDate } from './sharedfuncs';
import { assign } from "svelte/internal";
interface Props {
appealEntry: AppealEntry;
@@ -163,4 +162,4 @@
</div>
{/if}
</div>
</section>
</section>
@@ -44,7 +44,7 @@ export const actions = {
let ipInfo = await isIpRecognised(uuid, event.getClientAddress());
if (!ipInfo) {
return fail(400, { success: false, message: "Security check failed (code 1). Please contact an administrator."})
return fail(400, { success: false, message: "Security check failed (IP not recognized). Please contact an administrator."})
}
if (!ipInfo.panel_acknowledged) {
@@ -101,4 +101,4 @@ async function removeActCode(uuid: string) {
} finally {
if (conn) conn.release();
}
}
}