Security Features

sERP v1.11 introduces enhanced security features including multi-factor authentication for administrator accounts, automated database backups, and encryption of sensitive personal data at rest.

Multi-Factor Authentication (MFA)

Every account is required to complete two-factor authentication (2FA) at login, with the exception of a small set of top-level accounts described below. After entering the correct username and password, a 6-digit One-Time Password (OTP) is sent to the account’s registered mobile number via SMS.

MFA Login Process

  1. Enter your username and password on the login page and click Login

  2. sERP verifies your credentials. Unless your account is exempt (see below), you are redirected to the OTP verification page

  3. Check your registered mobile number for the SMS containing your 6-digit OTP

  4. Enter the OTP on the verification screen

  5. Click Verify OTP to complete login

Note

OTPs expire after 5 minutes. If the OTP expires before you enter it, return to the login page and log in again to receive a fresh OTP.

Which Accounts Are Exempt

A small number of top-level accounts always log in with username and password only, and are never prompted for an OTP:

  • In sERP v1.11, this is the Administrator/Director role, plus the vendor support account.

  • In sERP v2.0, this is the school’s own super-admin account (the built-in admin login), plus the vendor support account.

Every other account — including other Admin/HR Account Manager roles below Administrator/Director in v1.11, and campus administrators in v2.0 — is required to complete MFA.

Configuring a Mobile Number for MFA

An account must have a mobile number registered in order to receive OTP codes. This is managed from the Change Password page.

  1. Log in to the account

  2. From the welcome menu, click Change Password

  3. In the MFA Phone Number pane, enter or update the mobile number

  4. Click Save Phone

Warning

If no mobile number is configured for an account that requires MFA, the OTP is displayed on-screen as a temporary fallback. This is intended for development and initial setup only. Always ensure a valid mobile number is configured before going live.

Turning MFA Off School-Wide

One of the exempt top-level accounts described above can turn MFA off for the whole school, from Settings > SMS Settings, under Enforce two-factor authentication at login?.

Note

Turning this off means any account with no phone number on file can still log in with username and password alone — useful while you’re still populating phone numbers for a new rollout. Turn it back on once every account has a valid phone number. The exempt top-level accounts themselves are never affected either way, whether this is on or off.

Automated Database Backups

sERP can perform scheduled automated database backups to protect against data loss.

How Backups Work

Backups are generated by the script at cron/backup.php. When executed, it:

  1. Runs a MySQL dump of the full sERP database

  2. Compresses the output as a .sql.gz file

  3. Saves the file to temp/backups/ with a date-stamped filename (e.g. serp_backup_2026-02-27.sql.gz)

  4. Automatically deletes backup files older than 30 days

Scheduling Automated Backups

To run backups automatically, add the following line to your server’s cron configuration (crontab -e):

0 2 * * * php /path/to/serp/cron/backup.php

This runs the backup daily at 2:00 AM. Adjust the schedule as appropriate for your environment.

Note

Replace /path/to/serp/ with the actual filesystem path to your sERP installation (e.g. /var/www/html/serp/).

Manual Backups

A manual backup can be triggered at any time from the admin panel:

  1. Navigate to Tools > Backup Database

  2. Click Download Backup — a database dump is generated and downloaded to your browser

Tip

For production deployments, consider storing automated backups in an off-site location (e.g. cloud storage bucket or a remote server) in addition to the local temp/backups/ directory.

Data Encryption at Rest

Sensitive personal data is encrypted before it is stored in the database, rather than kept as plain text. This protects the information even if the underlying database is ever accessed directly, outside of the application.

What Is Encrypted

  • Student and guardian contact details (phone numbers, addresses, email addresses)

  • Student health records (blood type, allergies, medical conditions, vaccination history, emergency contacts)

  • Student disciplinary records

Note

Encryption is applied automatically whenever this data is saved or updated. There is nothing for school staff to configure — records are encrypted transparently and decrypted for display to authorised users within the application.

Note

This feature is available in sERP v1.11 and v2.0.

Password Storage

User passwords are stored using the bcrypt hashing algorithm, a one-way hash that cannot be reversed to recover the original password. Accounts created under the previous hashing scheme are upgraded automatically, without disruption, the next time that user logs in.