Skip to content

Subtask 2: Middleware - Create first-run enforcementΒ #8194

@DawoudIO

Description

@DawoudIO

Create middleware to enforce church name configuration on first run.

Tasks

  • Create: src/ChurchCRM/Slim/Middleware/ChurchInfoRequiredMiddleware.php
  • Check if sChurchName is empty in middleware
  • Redirect to /admin/church-info if empty
  • Define exempt routes (login, logout, etc.)
  • Register middleware in src/admin/index.php
  • Test redirect behavior

Reference

QUICKSTART-CHURCH-INFO.md Step 3

Parent Issue

#8190

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions