SEC-06A · Section 6: Kariah Member Management & Residential Area Classification
✓ Fully Implemented
Registering as a Kariah Member & Selecting a Mosque (/kariah-register)
Step-by-step guide for community residents applying for kariah membership at a registered mosque, selecting residential areas, consenting to the privacy notice, and receiving an application reference.
1. Selecting or Associating with a Mosque (/kariah-register)
- Click Register as Kariah Member in the top navigation bar or visit
/{lang}/kariah-register. - Select your mosque from the Mosque dropdown (
mosque_slug), which displays Mosque Name · District, State. - The page reloads with
?mosque={slug}, loading the mosque’s active residential areas while locking the District and State fields to the mosque’s official jurisdiction.
2. Completing the Kariah Membership Application Form
- Enter your Full Name (required, max 180 chars) and Preferred Contact Number (required, valid phone number).
- Optionally provide your Email, Date of Birth (cannot be in the future), and Gender.
- Enter your House/Unit Number (required, max 40 chars), optional Street name, and 5-digit Postcode (required).
- Select your Residential Area (
area_id) from the mosque’s configured Kampung, Taman, Locality, or Street list. - Optionally enter a Household Name and Relationship to group family members residing at the same address.
- Review the Privacy Notice, check the required consent box, and click Submit Application.
3. Keeping Your Application Reference Number
Upon submission, the system creates records in kariah_people, kariah_members (status pending), and kariah_membership_applications, and displays a unique reference number formatted as KRH-YYYYMMDD-XXXXXX.
Input Fields & Options Reference
| Input Field | Requirement | Validation & Database Mapping |
|---|---|---|
mosque_slug | Required | Active mosque; binds mosque_id, district_id, and state_id. |
full_name | Required | Max 180 chars; normalized into full_name_normalized for duplicate checks. |
contact_phone | Required | Matches ^\+?[0-9][0-9\-\s]{6,20}$; digits stored in phone_normalized. |
house_number & postcode | Required | House/unit (≤ 40 chars) and 5-digit postcode (^\d{5}$). |
area_id | Optional / Recommended | Must be an active area linked to the mosque in mosque_kariah_areas. |
household_name, household_relationship | Optional | Links member to kariah_households and kariah_household_members. |
consent | Required (1) | Explicit privacy consent recorded with timestamp in privacy_consent_at. |
Expected Results: A `pending` kariah membership application is queued for the Mosque Administrator and returns reference code `KRH-YYYYMMDD-XXXXXX`.
Important Notes & Data Boundaries: Submitting a kariah application does not create a login account (`users`), and national identity card (IC) numbers are intentionally never collected.
Common Errors & Troubleshooting
If you see "Too many applications. Please try again later", the rate limiter allows at most 5 submissions per IP address within a 15-minute window.