Staff Attendance
GPS and selfie clock-in with a server-checked geofence, flagged exceptions, cross-branch cover, CCTV verification, login tracking, and locked staff accounts.
13 min read
Overview
Staff attendance records when each person starts and ends a shift and proves, as far as a phone can, that they were at the salon. Staff clock in from the staff app (/my); the server checks their GPS position against the store's geofence. Anything that cannot be verified is still recorded, but it is flagged, the managers are alerted, and a manager has to close it with CCTV evidence.

Three related records live in the same area:
| Record | What it is | Where managers see it |
|---|---|---|
| Clock record | One shift: clock-in, clock-out, how it was verified | Staff Operations → Attendance |
| Login record | One staff sign-in, with its GPS check | Staff Operations → Login History |
| Lock | A staff account that cannot sign in | Team → Locked staff |
Clock records also decide automatic loss-of-pay days in payroll: a working day with no clock record counts as LOP. See the Staff Operations page.
Key numbers
| Setting | Value | Where it comes from |
|---|---|---|
| Default geofence radius | 200 m | Each location stores its own radius; 200 is the default |
| Allowed radius when editing a location | 50 to 2000 m | Checked in the Settings form only |
| Clock-out confirm window | 5 minutes after clock-in | Clock-out inside this window asks for confirmation |
| Anti-reclock window | 12 hours after a clock-out | No automatic clock-in during this time |
| Failed sign-ins before lockout | 5 | Per email address |
| Lockout length | 15 minutes | Clears sooner if a manager unlocks the account |
| Selfie / CCTV image size | JPEG, PNG or WebP. The phone shrinks selfies before upload; CCTV snapshots over about 650 KB are refused on the Attendance page | The server also refuses any image larger than 900,000 characters once encoded for upload |
Setting up a store
- Open Settings → Locations & hours.
- On the store, click GPS Setup.
- Enter latitude and longitude, or click Use my current location while standing at the salon.
- Set Geofence radius (meters), between 50 and 2000. The default is 200.
- Click Save GPS.
Clearing latitude and longitude, or clicking Remove GPS, turns GPS attendance off for that store. Staff based there then clock in as a no_gps_set exception every time (see Exceptions below).
Each staff member also needs a home store, and the Track attendance box ticked on their staff profile. With it off, the clock card does not appear for them. It is off by default for the Owner staff role, and owners (owner or super admin accounts) never see the clock card at all.
Clocking in from the staff app
The clock card sits at the top of the Today tab in /my. Managers who are also staff see a small clock widget in the dashboard sidebar that does the same job.
GPS auto clock-in
- The staff member opens the app. If they are not clocked in, it asks for the phone's location ("Getting your location…").
- The server measures the distance to the home store, using the position the phone sent. The browser or app never decides whether the person is in range.
- Inside the radius, a clock record is created with method
gps_auto. The card shows On shift with the time and elapsed hours.
The server rejects coordinates that are not real numbers, or are outside the valid latitude (±90) and longitude (±180) range, with "Invalid location coordinates".
Selfie clock-in
A selfie clock-in is GPS clock-in plus a front-camera photo. The same geofence check runs first; only then is the photo stored.
- The card offers Selfie Clock In after a clock-out (next to GPS Only).
- If the brand has Require selfie for staff clock-in switched on, GPS clock-in is not enough, and the card moves straight to the selfie step ("Take Selfie Photo", then Verify & Clock In).
- The phone shrinks the photo to a small JPEG (longest side 640 px) before upload. The server checks the file really is a JPEG, PNG or WebP image, whatever its name says.
- The record is saved with method
mobile_face_geofenced, and the staff member sees a Selfie verified badge.
"Selfie verified" means a selfie was captured inside the geofence and saved privately for the manager. It is not matched against the person's face. There is no face-matching engine.
The photo is kept in a private storage area that only the server can read.
Require-selfie switch. Owners only: Settings → Locations & hours → Require selfie for staff clock-in. When on, every clock-in needs a selfie, including the flagged "Clock in anyway" ones. Non-owners get "Not authorized" if they try to change it. The dashboard sidebar widget cannot take selfies, so it shows "Selfie verification is required - clock in from the staff app (/my)."
| Message | Meaning |
|---|---|
| Selfie face verification is required to clock in. | The brand requires a selfie and none was sent |
| Invalid photo. Please take a clear front-facing selfie. | Wrong file type, damaged image, or too large |
| Could not read that photo. Please try again. | The phone could not process the picture |
Exceptions (flagged clock-ins)
If the server cannot confirm the person is at the store, the card does not clock them in silently. It explains why and lets them clock in anyway. That clock-in is saved with the reason, and managers are alerted.
| Method | When it happens | What the staff member sees |
|---|---|---|
gps_denied |
Location permission denied, GPS switched off, or the fix timed out (12 seconds) | "GPS / Location Issue", with the real cause. Buttons: Retry GPS, App Settings (Android app only), Clock in anyway |
out_of_range |
Position is outside the home store's radius and inside no other branch | "Not at your salon location. You are 450m away from your designated store (maximum allowed radius is 200m)." Buttons: Retry GPS, Clock in anyway |
no_gps_set |
The home store has no coordinates (and no other branch matches), or the staff member has no home store | "Ready to start?" with a Clock In button |
manual |
A manager clocked the person in from the Attendance page | Not flagged, not an exception |
Location error messages are specific. For example: "Location permission was denied. Tap 'App Settings' below to allow location." or "GPS request timed out while locating your device. Please check your signal and tap Retry."
When an exception clock-in is saved, managers get a Flagged check-in alert (title "Name — flagged check-in"). It lists the time, the store and the reason, for example "out of range, 450m away (limit 200m)". It links to the Attendance page and is marked critical.
By default the alert goes to the bell for owners, brand managers and location managers. Push, WhatsApp and email can be added in the alert settings. These alerts also appear on the Exceptions dashboard.
Closing an exception with CCTV evidence
An exception stays open until a manager checks the CCTV and records a decision. This cannot be skipped: the server refuses to close one without a snapshot, and the database enforces the same rule.
- Open Staff Operations → Attendance. A banner shows "N geofence exceptions need CCTV verification before they can be closed."
- On the flagged row, click Verify with CCTV.
- Attach a CCTV snapshot (JPEG, PNG or WebP, under about 650 KB; crop or screenshot the frame).
- Choose Verified present - approve or Not present - reject.
- Optionally add a note (up to 500 characters), then click Resolve.
The row then shows Verified or Rejected with a View CCTV button that opens the snapshot through a link that expires after 2 minutes.
| Message | Cause |
|---|---|
| A CCTV snapshot image (JPEG, PNG or WebP, under ~650 KB) is required to close this exception. | Missing or invalid image |
| Snapshot is too large - use an image under 650 KB (crop or screenshot the CCTV frame). | Image over the limit, caught before upload |
| This record is not a geofence exception. | The shift was gps_auto, manual or a selfie clock-in |
| This exception is already resolved. | Another manager closed it first |
| Clock record not found | The record is in a store you cannot access |
| You don't have permission to do this | Your role is not owner, brand manager or location manager |
Open exceptions for the day also show on the dashboard and on the Exceptions page. They do not stop the salon day from closing: if any are still open, the owners get a "closed with pending items" warning (see the Open and Close Salon and Exceptions pages).
Only one manager can close a given exception. A location manager can resolve exceptions only for their own stores. A rejected decision is recorded for the audit trail; it does not change worked hours by itself.
Cross-branch cover
Staff based at one store are often sent to another. If a staff member is outside their home store's radius but inside another branch's radius (same brand), that is treated as valid cover, not an exception:
- The clock record is saved against the branch where they actually are, with method
gps_auto(ormobile_face_geofenced). - If several branches match, the closest fit wins.
- Managers get an informational Clock-in at another branch alert (not critical).
- The Attendance table shows "Logged in at Anna Nagar (home: Adyar)" under the name.
- With a store selected in the dashboard, shifts appear under the branch worked, not the home store.
A branch with no coordinates cannot count as cover. A home store with no coordinates does not block cover at a branch that has them. A staff member with no home store has no fence to check, so they are always a no_gps_set exception.
Clocking out
- Tap Clock Out on the card. The phone tries to read its location for up to 6 seconds.
- If there is no location, the clock-out still goes through, with the note "Clocked out without a location (reason)." Clock-out is never blocked by the geofence.
5-minute confirm. If the clock-out comes less than 5 minutes after clock-in, the card asks "You clocked in just now. Clock out anyway?" with Clock out anyway and Stay clocked in. This exists because mis-taps were causing clock-in, clock-out, clock-in sequences seconds apart. Managers clocking someone out from the Attendance page are not asked.
12-hour anti-reclock. After a clock-out, the app does not clock the person back in automatically for the next 12 hours. The card shows "You're clocked out" and waits for an explicit tap on Selfie Clock In or GPS Only. This stops the app re-clocking someone the moment they reopen it. It governs automatic clock-in only: a deliberate tap can still start a new shift.
One person can have only one open shift. A second attempt returns the existing shift, never a duplicate.
Manager clock-in and clock-out
On Staff Operations → Attendance, managers can record attendance for staff who forgot or have no phone.
- Pick the Date and Clock-in time (IST).
- Tick one or more staff (or Select all).
- Click Clock In (the button names the person, or "Clock In N Staff").
- For anyone on shift, use Clock Out under Active Shifts.
Details:
- These records use method
manual, no GPS, and no store. - Only one record per staff per shift date: "Already clocked in for this date". In a bulk run these are counted as "already clocked in", for example "3 clocked in, 1 already clocked in".
- Date and time must both be filled: "Choose a clock-in date and time." Pick at least one person: "Select at least one staff member."
- Export CSV downloads the period's records. The Method column shows the raw method code.
Times in the Attendance page and in alerts are always shown in IST (Asia/Kolkata). A shift's date follows the brand's own timezone.
Login tracking
Every staff sign-in is checked against the store geofence, the same way as clock-in. Owners are not tracked.
- On the sign-in page, the browser asks for location and sends it with the password.
- After a correct password, the server records the sign-in with the distance from the home store.
- Sign-in is never blocked because of GPS. A tracking failure is logged, never shown as a sign-in error.
| Login method | Meaning |
|---|---|
gps_auto |
Inside the home store's radius, or inside another branch's radius |
gps_denied |
No location was sent |
out_of_range |
Outside the radius and inside no other branch |
no_gps_set |
The home store has no coordinates |
Anything other than gps_auto is highlighted on Staff Operations → Login History and triggers a Flagged login alert to managers. A sign-in at another branch triggers an informational Login at another branch alert instead. The page has a month selector and Export CSV (date, staff, time, method, distance). Unlike clock exceptions, login exceptions have no CCTV step; they are informational.
Login tracking does not check the Track attendance setting.
Locked staff accounts
A locked account cannot sign in. Two things can lock one:
| Cause | How it ends |
|---|---|
| 5 wrong passwords in a row (per email address) | Clears itself after 15 minutes, or sooner when a manager unlocks it |
| A manual lock on the staff record (reason defaults to "Locked by salon owner"; owner accounts cannot be locked) | Stays until a manager unlocks it |
What the staff member sees:
- During a lockout: "Account temporarily locked. Try again in N minutes."
- Wrong password: "Invalid login credentials". The same message is used for an unknown account, so it does not reveal who is registered.
- With a manual lock: "Your staff account is locked: reason. Please contact your salon owner to unlock it." (or "Your staff account has been locked. Please contact your salon owner to unlock it." without a reason).
A manual lock is checked after the password is accepted, so the staff member is signed straight back out.
Unlocking
- Open Team and click Filter locked staff, or go to Team → Locked staff. The page lists each locked account with email, phone, store and reason (for example "Locked out due to 5 failed login attempts") and, for lockouts, the time it ends.
- Click Unlock.
Unlocking clears the failed-attempt counter and the lock flag together. It needs the staff-edit permission (owners and managers by default). Errors read "You don't have permission to manage staff." or "Staff member not found".
Permissions
| Action | Owner | Brand manager | Location manager | Front desk | Stylist |
|---|---|---|---|---|---|
| Clock in and out in the staff app | No (excluded) | If tracked | If tracked | If tracked | If tracked |
| View Attendance and Login History pages | Yes | Yes | Yes | No (sent to /my) |
No |
| Clock staff in or out for them, from the Attendance page | Yes | Yes | Yes | No (the page is manager-only) | No |
| Resolve an exception, view CCTV | Yes | Yes | Own stores | No | No |
| Switch on Require selfie | Yes | No | No | No | No |
| Unlock a staff account (default) | Yes | Yes | Yes | No | No |
The Attendance and Login History pages are open to the four manager roles only, so front desk and stylists never see the manager screens. The clock-in and clock-out actions behind those pages also accept front desk. Unlocking follows the role permission Staff - Edit a staff member, which is on for owners and managers by default and can be changed in role settings.
Key data
- clock_records — shift record: times, store, GPS in and out, method, selfie path, exception decision, CCTV snapshot path. Worked minutes are calculated from the two times.
- staff_login_records — one row per tracked sign-in.
- login_failures — failed-attempt counter and lockout time, per email.
- locations.geofence_radius_meters — per-store radius (default 200).
- brands.staff_clock_require_face — the require-selfie switch.
- staff_members.track_attendance, is_locked — per-person switches.
Two private storage areas hold the images: clock-in-selfies and attendance-cctv-snapshots. Neither is public.