Even more verbose errors
This commit is contained in:
1 parent
a188cb1bed
commit
8ccbd5d63c
2 files changed
+5
-5
No files matched your search
@@ -54,8 +54,8 @@ export const actions = {
|
||||
}
|
||||
|
||||
let activePunishment = await isActivelyPunished(userInfo.uuid);
|
||||
if (activePunishment == null) {
|
||||
return fail(400, { success:false, message: "Security check failed (code 1). Please contact an administrator."})
|
||||
if (activePunishment != null) {
|
||||
return fail(400, { success:false, message: "Security check failed (active punishment). Please contact an administrator."})
|
||||
}
|
||||
|
||||
if (activePunishment) {
|
||||
@@ -99,4 +99,4 @@ export const actions = {
|
||||
|
||||
redirect(303, "/");
|
||||
}
|
||||
} satisfies Actions;
|
||||
} satisfies Actions;
|
||||
@@ -52,7 +52,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.initial) {
|
||||
@@ -148,4 +148,4 @@ async function removeActCode(uuid: string) {
|
||||
} finally {
|
||||
if (conn) conn.release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user