Connecting mosques and communities
📖 Help Center & User Manual · Documentation Version 1.0

Kariahku.com User Manual & Help Center

Official step-by-step documentation for the Kariahku.com Multi-Tenant Mosque Management System.

Kariahku.com Multi-Tenant Mosque Management System

SECTION B — Section B: Getting Started & Account Access

Official step-by-step documentation for the Kariahku.com Multi-Tenant Mosque Management System.

Documentation Version: 1.0
Generated On: 2026-12-05 00:43 UTC
Articles: 3

Table of Contents

  1. [SEC-B1] Accessing Kariahku.com, Registering User Accounts & Email Verification Status — Section B: Getting Started & Account Access
  2. [SEC-B4] Logging In, Logging Out Securely & Resetting a Forgotten Password — Section B: Getting Started & Account Access
  3. [SEC-B7] Updating User Profile, Changing Passwords, Selecting Language & Understanding Dashboards — Section B: Getting Started & Account Access
SEC-B1 · Section B: Getting Started & Account Access ◐ Partially Implemented

Accessing Kariahku.com, Registering User Accounts & Email Verification Status

Step-by-step instructions for accessing Kariahku.com, understanding how login accounts are provisioned versus public Mosque/Kariah applications, and email verification status.

Purpose of Function Clarify how users access the platform and how authenticated accounts are provisioned and verified in the current Kariahku.com security architecture.
Prerequisites Modern web browser; server CLI access for provisioning new login accounts.
Required User Permissions Public Access / Global users.manage for User Administration

1. Accessing Kariahku.com

  1. Open your web browser and navigate to the platform URL (e.g., https://kariahku.com/ or http://localhost/en).
  2. The router automatically resolves your active language prefix (/ms, /en, or /ar).
  3. Public visitors can immediately browse the mosque directory, prayer times, activities, mosque registration form (/register-mosque), and kariah membership form (/kariah-register) without logging in.

2. Registering a New User Account (Current Architecture)

Important Architectural Note: To protect tenant and institutional governance, Kariahku.com does not expose a public self-service user account signup form. Instead, three distinct registration workflows exist:

  1. Provisioning Authenticated Login Accounts (users table): Login accounts for Platform Administrators, Mosque Administrators, and MAIN/JAKIM Officers are provisioned via the official management CLI:
    php database/manage.php create-user "Full Name" "user@example.my" "StrongPassword123!"
    or for a Super Administrator:
    php database/manage.php create-admin "Admin Name" "admin@kariahku.com" "StrongPassword123!"
  2. Assigning Roles & Account Status: A Super Admin signs in to /admin/users to assign global roles (super_admin or portal_admin) or toggle user status between active and suspended.
  3. Public Mosque & Kariah Applications: Mosque representatives apply at /register-mosque (linking applicant_email to an active users account upon approval), while community members apply at /kariah-register (creating records in kariah_people and kariah_members without creating a login account).

3. Email Verification Status

Implementation Status: Automated self-registration email verification links are not implemented because public self-signup for login accounts is disabled by design. Identity and eligibility verification are performed through:

  • Mosque Document Verification: Platform administrators inspect uploaded supporting documents at /admin/mosques and verify that an active users account matches applicant_email prior to approval.
  • Kariah Application Review: Mosque administrators verify and approve community member applications at /mosque-admin/kariah-members.
User account management and role assignment at /admin/users alongside public registration workflows.
User account management and role assignment at /admin/users alongside public registration workflows.

Input Fields & Options Reference

Field / ParameterLocationDescription & Validation Rules
nameCLI create-user / users.nameFull name of the account holder (up to 150 characters).
emailCLI create-user / users.emailValid unique email address (up to 254 characters, normalized to lowercase).
passwordCLI create-userMust be between 12 and 72 characters; hashed with password_hash(..., PASSWORD_DEFAULT).
status/admin/usersAccount status: active (login permitted), pending, or suspended (login blocked).
Expected Results: An active user record is created in the `users` table and can be assigned global, mosque, or institutional roles.
Important Notes & Data Boundaries: Before approving a mosque registration at `/admin/mosques`, ensure an active `users` account matching `applicant_email` has been created.

Common Errors & Troubleshooting

Error: "Create or activate the applicant user account matching applicant_email before approving this mosque."
Solution: Provision the user account via php database/manage.php create-user using the applicant’s exact email address, then approve the mosque at /admin/mosques.

SEC-B4 · Section B: Getting Started & Account Access ✓ Fully Implemented

Logging In, Logging Out Securely & Resetting a Forgotten Password

Step-by-step instructions for logging into Kariahku.com, brute-force rate limiting rules, secure POST+CSRF logout, and resetting a forgotten password.

Purpose of Function Enable authorized users to sign in safely, terminate their session securely, and recover account access if a password is forgotten.
Prerequisites An active user record in the `users` table.
Required User Permissions Active User Account in users Table

1. Logging Into the System (/login)

  1. Click Log In in the top navigation bar or visit /{lang}/login.
  2. Enter your registered Email address (up to 254 characters).
  3. Enter your Password (up to 72 characters).
  4. Click Log In.
  5. Upon verification, the system regenerates the PHP session ID (session_regenerate_id(true)), rotates the CSRF token, writes an auth.login audit entry, and redirects to /{lang}/dashboard.

2. Logging Out Securely (/logout)

  1. Click the Log Out button in the header navigation bar.
  2. The button submits a CSRF-protected HTTP POST request to /{lang}/logout (GET requests to /logout are rejected with 405 Method Not Allowed to prevent cross-site logout CSRF).
  3. The session is destroyed, the session cookie is expired, an auth.logout event is logged, and you are redirected to /{lang}/login.

3. Resetting a Forgotten Password (/forgot-password & /reset-password)

  1. On /login, click Forgot password? to open /{lang}/forgot-password.
  2. Enter your registered Email address and click Submit.
  3. The system generates a 64-character hex reset token (stored as a SHA-256 hash in password_resets valid for 1 hour).
  4. Open the reset URL /{lang}/reset-password?token={token}.
  5. Enter your new Password (minimum 12 characters, maximum 72 characters) and repeat it in Confirm Password.
  6. Click Submit. The token is marked used (used_at) and you are redirected to /login.
Sign In (/login) and Password Recovery (/forgot-password & /reset-password) screens.
Sign In (/login) and Password Recovery (/forgot-password & /reset-password) screens.

Input Fields & Options Reference

Input FieldRouteValidation Rules
email/login, /forgot-passwordValid email format, max 254 chars, dir="ltr".
password/login, /reset-passwordLogin: 1–72 chars. Password reset: 12–72 chars required.
confirm_password/reset-passwordMust exactly match the new password field.
Expected Results: Users sign in to `/dashboard`, sign out with complete session cleanup, or reset their password securely.
Important Notes & Data Boundaries: Brute-Force Protection: 5 failed login attempts for the same email or IP address within 15 minutes temporarily locks login attempts for 15 minutes.

Common Errors & Troubleshooting

  • Login Error ("Invalid email or password"): Verify email spelling, check Caps Lock, ensure your account status is active, and wait 15 minutes if rate-limited.
  • Reset Error ("Invalid or expired reset token"): Tokens expire after 60 minutes and are single-use. Request a new token at /forgot-password (throttled to 1 request per 60 seconds).
SEC-B7 · Section B: Getting Started & Account Access ◐ Partially Implemented

Updating User Profile, Changing Passwords, Selecting Language & Understanding Dashboards

Guide to user profile and password management policies, switching interface languages (BM/EN/AR), and interpreting dashboard cards and navigation.

Purpose of Function Help users manage their language preference, understand how account profiles and passwords are maintained, and navigate role-specific dashboards.
Prerequisites An authenticated session for `/dashboard`; language switching is available to all visitors.
Required User Permissions Authenticated User Session (/dashboard)

1. Updating User Profile (Current System Policy)

Implementation Status: In Kariahku.com, login account identity fields (users.name and users.email) are centrally governed to preserve audit log integrity (audit_logs) and institutional/mosque role bindings:

  • Viewing Account Info: Signing in to /{lang}/dashboard displays your account name, email, and active role capabilities.
  • Login Account Name/Email Changes: Self-service editing of users.name or users.email is not exposed in the UI; changes are performed by platform administrators.
  • Updating Mosque & Kariah Profiles: Mosque Administrators have full self-service screens to update the Mosque Profile at /mosque-admin/profile and Kariah Member Profiles at /mosque-admin/kariah-members.

2. Changing Passwords

  1. To rotate or change your account password at any time, navigate to /{lang}/forgot-password.
  2. Submit your account email address and follow the token-verified /{lang}/reset-password?token=... workflow to set a new 12–72 character password.

3. Selecting Your Preferred Language (BM, EN, AR)

  1. Locate the language switcher in the top utility bar.
  2. Click BM (Bahasa Melayu), EN (English), or AR (العربية).
  3. The system rewrites the current route to the chosen language prefix (e.g. /en/manual → /ar/manual) and persists your choice in $_SESSION['lang'] and the 365-day kariahku_lang cookie.

4. Understanding Dashboard Information (/dashboard)

Visiting /{lang}/dashboard automatically routes you according to your assigned permissions:

  • Platform Administrators (with platform.dashboard.view): Redirected to /admin/dashboard showing total users, mosques by status, pending reviews, and recent audit logs.
  • Mosque Administrators & Editors: Redirected to /mosque-admin/dashboard showing profile completeness percentage, announcement/committee counts, subscription status, and quick action links.
  • MAIN & JAKIM Officers: Access state or national aggregate dashboards at /main/dashboard and /jakim/dashboard.
Unified dashboard router (/dashboard) and trilingual language switcher (BM / EN / AR).
Unified dashboard router (/dashboard) and trilingual language switcher (BM / EN / AR).

Input Fields & Options Reference

Language CodeDisplay NameDirection & Typography
msBahasa Melayu (Default)dir="ltr" (Left-to-Right), system UI typography.
enEnglishdir="ltr" (Left-to-Right), system UI typography.
arالعربية (Arabic)dir="rtl" (Right-to-Left), bundled KariahArabic (NotoNaskhArabic.ttf) font.
Expected Results: Users can switch languages persistently and interpret all metrics and quick actions on their dashboard.
Important Notes & Data Boundaries: Language preferences are stored in the `kariahku_lang` cookie (`HttpOnly`, `SameSite=Lax`) for 1 year.

Common Errors & Troubleshooting

If you sign in and see only the basic account card on /dashboard without management links, your account has not yet been assigned a mosque or platform role. Contact a Super Admin.