Security audit fixes: docs (security.md, content.md, i18n.md, AGENT.md, skills), changelog, static-rule judgments for the merged doctor and 2FA code, hook mark for the account-rule tests
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e9f9947eb7
commit
e5964d4e05
@@ -34,7 +34,7 @@ import { totp } from './http/totp.js'
|
||||
* service what Payload's own account mail is (modules/email/relay/accountMail.ts): that one is not counted here.
|
||||
*/
|
||||
// the account-mail hooks (the relay's kind mark, the after-commit hold) and the sign-in rules (1.18.0) are not the password rule
|
||||
const ruleHook = (hook: unknown) => !(hook as Record<symbol, unknown>)[Symbol.for('iapl.accountMailMark')] && !(hook as Record<symbol, unknown>)[Symbol.for('iapl.accountMailAfterCommit')] && !(hook as Record<symbol, unknown>)[Symbol.for('iapl.signInRules')]
|
||||
const ruleHook = (hook: unknown) => !(hook as Record<symbol, unknown>)[Symbol.for('iapl.accountMailMark')] && !(hook as Record<symbol, unknown>)[Symbol.for('iapl.accountMailAfterCommit')] && !(hook as Record<symbol, unknown>)[Symbol.for('iapl.signInRules')] && !(hook as Record<symbol, unknown>)[Symbol.for('iapl.queryGuard')]
|
||||
|
||||
const TOTP_SECRET = 'JBSWY3DPEHPK3PXP'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user