03 / 13
Staff sign in with their phone number and password, and patients with their card code. Every failed attempt is recorded and limited.
Stored after encryption with the scrypt algorithm, never as plain text.
After 5 failed attempts for one phone number within 15 minutes, sign-in is paused. After 20 failed attempts from the same network address within 15 minutes, it is paused too.
A staff session ends after two hours of inactivity, and every session closes after 12 hours at most.
Patients sign in with their card's code (QR). Their device is remembered after the first sign-in so they don't have to enter it each time.