update help
This commit is contained in:
@@ -29,8 +29,8 @@ export const AUTH_CONFIG = {
|
|||||||
export const RATE_LIMITS = {
|
export const RATE_LIMITS = {
|
||||||
/** Login: 5 attempts per 15 minutes per IP */
|
/** Login: 5 attempts per 15 minutes per IP */
|
||||||
LOGIN_IP: { maxAttempts: 5, windowMs: 15 * 60 * 1000 },
|
LOGIN_IP: { maxAttempts: 5, windowMs: 15 * 60 * 1000 },
|
||||||
/** Login: 3 attempts per hour per email */
|
/** Login: 5 attempts per hour per email */
|
||||||
LOGIN_EMAIL: { maxAttempts: 3, windowMs: 60 * 60 * 1000 },
|
LOGIN_EMAIL: { maxAttempts: 5, windowMs: 60 * 60 * 1000 },
|
||||||
/** Password reset: 3 attempts per hour per IP */
|
/** Password reset: 3 attempts per hour per IP */
|
||||||
PASSWORD_RESET_IP: { maxAttempts: 3, windowMs: 60 * 60 * 1000 },
|
PASSWORD_RESET_IP: { maxAttempts: 3, windowMs: 60 * 60 * 1000 },
|
||||||
/** Registration: 3 attempts per hour per IP */
|
/** Registration: 3 attempts per hour per IP */
|
||||||
@@ -231,7 +231,7 @@ export const ERROR_PAGE_CONFIG = {
|
|||||||
|
|
||||||
export const VALIDATION_CONFIG = {
|
export const VALIDATION_CONFIG = {
|
||||||
/** Minimum password length (must match securePasswordSchema in schemas/user.ts) */
|
/** Minimum password length (must match securePasswordSchema in schemas/user.ts) */
|
||||||
MIN_PASSWORD_LENGTH: 12,
|
MIN_PASSWORD_LENGTH: 8,
|
||||||
/** Maximum message length for contact form */
|
/** Maximum message length for contact form */
|
||||||
MAX_CONTACT_MESSAGE_LENGTH: 500,
|
MAX_CONTACT_MESSAGE_LENGTH: 500,
|
||||||
/** Minimum password confirmation match length before showing error */
|
/** Minimum password confirmation match length before showing error */
|
||||||
|
|||||||
@@ -47,13 +47,14 @@ export const createTerminalCommands = (context: CommandContext) => {
|
|||||||
},
|
},
|
||||||
cd: {
|
cd: {
|
||||||
action: () => context.navigate("/"),
|
action: () => context.navigate("/"),
|
||||||
description: "Navigate to home"
|
description: "Navigate to home",
|
||||||
|
hidden: true
|
||||||
},
|
},
|
||||||
ls: {
|
ls: {
|
||||||
action: () => {
|
action: () => {
|
||||||
context.addToHistory(
|
context.addToHistory(
|
||||||
"ls",
|
"ls",
|
||||||
"home blog resume contact downloads login account",
|
"home blog/ resume contact downloads login account",
|
||||||
"success"
|
"success"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -63,7 +64,7 @@ export const createTerminalCommands = (context: CommandContext) => {
|
|||||||
action: () => {
|
action: () => {
|
||||||
context.addToHistory(
|
context.addToHistory(
|
||||||
"ls -la",
|
"ls -la",
|
||||||
"drwxr-xr-x blog/\n-rw-r--r-- resume\n-rw-r--r-- contact\n-rw-r--r-- downloads\n-rw-r--r-- account",
|
"drwxr-xr-x home\ndrwxr-xr-x blog/\n-rw-r--r-- resume\n-rw-r--r-- contact\n-rw-r--r-- downloads\n-rw-r--r-- login\n-rw-r--r-- account",
|
||||||
"success"
|
"success"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -124,7 +125,8 @@ export const createTerminalCommands = (context: CommandContext) => {
|
|||||||
"error"
|
"error"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
description: "Don't try this at home, kids"
|
description: "Don't try this at home, kids",
|
||||||
|
hidden: true
|
||||||
},
|
},
|
||||||
cowsay: {
|
cowsay: {
|
||||||
action: () => {
|
action: () => {
|
||||||
@@ -231,18 +233,16 @@ export const createTerminalCommands = (context: CommandContext) => {
|
|||||||
|
|
||||||
// Add all cd variants for each route
|
// Add all cd variants for each route
|
||||||
routes.forEach((route) => {
|
routes.forEach((route) => {
|
||||||
// cd blog (visible in help)
|
|
||||||
commands[`cd ${route.name}`] = {
|
commands[`cd ${route.name}`] = {
|
||||||
action: () => context.navigate(route.path),
|
action: () => context.navigate(route.path),
|
||||||
description: `Navigate to ${route.name}`
|
description: `Navigate to ${route.name}`,
|
||||||
|
hidden: true
|
||||||
};
|
};
|
||||||
// cd /blog (hidden alias)
|
|
||||||
commands[`cd ${route.path}`] = {
|
commands[`cd ${route.path}`] = {
|
||||||
action: () => context.navigate(route.path),
|
action: () => context.navigate(route.path),
|
||||||
description: `Navigate to ${route.name}`,
|
description: `Navigate to ${route.name}`,
|
||||||
hidden: true
|
hidden: true
|
||||||
};
|
};
|
||||||
// cd ~/blog (hidden alias)
|
|
||||||
commands[`cd ~${route.path}`] = {
|
commands[`cd ~${route.path}`] = {
|
||||||
action: () => context.navigate(route.path),
|
action: () => context.navigate(route.path),
|
||||||
description: `Navigate to ${route.name}`,
|
description: `Navigate to ${route.name}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user