Skip to content

Enforce Officer Login Curfew and Block Access Outside Allowed Hours #64

@ob22a

Description

@ob22a

Description
Officer accounts should not be allowed to log in outside of defined curfew hours. Currently, the system may record curfew violations but does not actively prevent login attempts during restricted times.

This issue focuses on enforcing curfew rules, not just reporting them.

Acceptance Criteria

  • Curfew hours are configurable (e.g. via environment variable or database)
  • Officer login attempts outside curfew hours are blocked
  • Clear and user-friendly error message is displayed
  • Curfew checks apply to all authentication entry points
  • Logic is centralized (not duplicated across routes)
  • System time handling accounts for timezone correctly

Out of Scope

  • Security reporting and audit logging (tracked in a separate issue)

Labels
security, auth, backend, high-priority

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions