# Nazareth Church Management System – Passwords Reference

**Document purpose:** Central reference for all default and system passwords. Keep this file secure and do not commit it to public repositories if it contains sensitive information.

---

## Admin

| Purpose | Username | Password | Notes |
|---------|----------|----------|-------|
| Default admin (first login) | `admin` | `admin123` | Created by installer. **Change after first login.** |

---

## Clerks

| Purpose | Username | Password | Notes |
|---------|----------|----------|-------|
| New clerks (default) | *set by admin* | `GreenOlive` | Auto-assigned when admin creates a clerk. User must change on first login. |

---

## Database

| Purpose | Username | Password | Notes |
|---------|----------|----------|-------|
| MySQL (AMPPS default) | `root` | `mysql` | Configured in `config/database.php`. Adjust if your setup differs. |

---

---

## SMTP (Email)

| Purpose | Location | Notes |
|---------|----------|-------|
| SMTP credentials | `config/smtp.local.php` | Copy from `config/smtp.local.example.php`. Set `enabled` = true, host, port, username, password, from_email, from_name. Gmail: use App Password. Do not commit `.local` file. |

**Usage in code:** `require_once 'includes/mail.php';` then `sendMail($to, $subject, $bodyHtml, $bodyText);` returns `['sent' => bool, 'error' => string|null]`.

---

## SMS (Arkesel / Twilio)

| Purpose | Location | Notes |
|---------|----------|-------|
| SMS credentials | **Settings** (sidebar) or `config/sms.local.php` | In Settings choose provider: **Arkesel** (api_key, sender name) or **Twilio** (account_sid, auth_token, from_number). Do not commit `.local` if used. |

**Usage in code:** `require_once 'includes/sms.php';` then `sendSms($to, $message);` returns `['sent' => bool, 'error' => string|null]`. `$to` can be e.g. `+233241234567` or `0241234567` (auto-prefixed with 233 for Arkesel).

---

## Birthday messages (automatic)

| Purpose | Location | Notes |
|---------|----------|-------|
| Send birthday SMS/email | **Settings** → Birthday messages | Enable "Send birthday wishes by SMS" and/or "by email". Uses the same SMTP/SMS credentials. |
| Run automatically | **Cron** | Run daily: `php /path/to/nazareth/cron/birthday-messages.php` (e.g. at 8:00 AM). Or call via HTTP: `GET /nazareth/cron/birthday-messages.php?key=YOUR_SECRET` after defining `BIRTHDAY_CRON_KEY` in `config/app.php`. |

---

## Summary

| Context | Default password |
|---------|------------------|
| Admin (first install) | `admin123` |
| Clerk (new user) | `GreenOlive` |
| MySQL (AMPPS) | `mysql` |


Migration
username: imscopyc_drbarnor
password: }w$D6)4f5Lx*the3


// Use 127.0.0.1 instead of localhost to avoid MySQL socket path issues on macOS
$db_host = '127.0.0.1';
$db_name = 'imscopyc_nazareth';
$db_user = 'imscopyc_drbarnor';
$db_pass = '}w$D6)4f5Lx*the3';
