Access defaults overridable; unlock admin-only; 2FA target validated
- access.authAccess merges over the injected auth collection's access; unlock is admin-only by default - access.firstUserAdmin (default true) makes the first-register promotion optional - globalOverrides: object merges access/admin/hooks, function takes over - form Emails protection is applied before formOverrides.fields, so a project can change it there - 2FA defaults to admin.user and fails at init when the target is not an auth collection or differs from admin.user (twoFactor.allowCollectionMismatch) - buildRolesField, injectRoles, applyGlobalOverrides exported Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
14fd2c497f
commit
a87742621a
@@ -6,7 +6,9 @@ export {
|
||||
adminOrEditorField,
|
||||
adminOrSelf,
|
||||
authenticated,
|
||||
buildRolesField,
|
||||
hasMinimumRole,
|
||||
injectRoles,
|
||||
isAdmin,
|
||||
isEditor,
|
||||
requireRole,
|
||||
@@ -231,3 +233,5 @@ export { getTurnstileConfig } from './modules/turnstile/config.js'
|
||||
export type { TurnstileConfig } from './modules/turnstile/config.js'
|
||||
export { ipalKit } from './plugin.js'
|
||||
export type { IpalOptions } from './types.js'
|
||||
export { applyGlobalOverrides } from './globals/overrides.js'
|
||||
export type { GlobalOverride, GlobalOverrides, IpalGlobalSlug } from './globals/overrides.js'
|
||||
|
||||
Reference in New Issue
Block a user