<?php
/* ============================================================================
 *  reset_config.php  —  settings for password-reset delivery.
 *  Fill in the channels you want to use. Returns an array.
 * ==========================================================================*/

return [
    'app_base_url'      => 'https://7d-lao.com/seven-credit-system',
    'code_ttl_minutes'  => 15,     // how long a reset code stays valid
    'code_length'       => 6,      // digits in the reset code

    /* ── EMAIL ───────────────────────────────────────────────────────────────
       Sends via authenticated SMTP when smtp_enabled = true (recommended).
       Falls back to PHP mail() if SMTP is off. */
    'email_enabled'     => true,
    'mail_from'         => 'admin@7d-lao.com',
    'mail_from_name'    => 'Seven Digital',

    /* SMTP (cPanel mailbox). Port 465 = SSL, port 587 = TLS. */
    'smtp_enabled'      => true,
    'smtp_host'         => '7d-lao.com',        // try 'mail.7d-lao.com' if this fails
    'smtp_port'         => 465,
    'smtp_secure'       => 'ssl',               // 'ssl' for 465, 'tls' for 587
    'smtp_user'         => 'admin@7d-lao.com',
    'smtp_pass'         => 'tD@8Qq_4JVbU291b',   // admin@7d-lao.com mailbox password

    /* ── WHATSAPP (Meta WhatsApp Cloud API) ──────────────────────────────────
       To enable: set whatsapp_enabled = true and fill in the three values
       below, and create an approved message template named in whatsapp_template
       with ONE body parameter ({{1}} = the reset code). */
    'whatsapp_enabled'      => false,
    'whatsapp_api_base'     => 'https://graph.facebook.com/v20.0',
    'whatsapp_phone_id'     => '',     // your WhatsApp phone number ID
    'whatsapp_token'        => '',     // permanent access token
    'whatsapp_template'     => 'password_reset_code',
    'whatsapp_lang'         => 'en',   // template language code (e.g. en, lo)
    'whatsapp_country_code' => '856',  // default country code for local numbers (Laos = 856)
];