Skip to main content

O2P_DEMO_MODE

Static O2P_DEMO_MODE 

Source
pub static O2P_DEMO_MODE: LazyLock<bool>
Expand description

Demo mode flag for public demo sites

When enabled (O2P_DEMO_MODE=true):

  • All new users are created with admin privileges by default
  • Admin views mask other users’ sensitive data (emails, IPs, credentials)
  • A placeholder user with sequence_number=1 is created at init, so all real users start from sequence_number=2 (no first-user special treatment)

This is a single toggle that activates all demo-specific behavior, preventing accidental misconfiguration (e.g., granting admin to all users without also enabling data masking).

Default: false