By default, a Mobilid user is identified by scanning the licence QR code. With the hidden option MOBILIDCONNECT_IDENTIFY_MODE you can choose another way to identify users when they log in to the Mobilid app, for example by scanning their encrypted password or by entering a PIN code.
For this feature to work, the connection must be set to the 'identification required' mode.
The option is enabled by adding a constant in Dolibarr.
MOBILIDCONNECT_IDENTIFY_MODE.| Value | Mode | Description |
|---|---|---|
1 | Licence QR code | Current (default) mode: the user is identified by scanning the licence QR code. |
2 | Encrypted password | The user is identified by scanning their encrypted password. |
3 | PIN code | The user is identified by entering or scanning a PIN code. Scanning the encrypted password (mode 2) also still works. |
The user logs in by scanning their encrypted password.
Limitation: each user must have a unique password. If two or more users have the same password, the login will fail with a connection error.
The user logs in by entering or scanning a PIN code. Scanning the encrypted password, as in mode 2, also still works in this mode.
This mode needs a complementary attribute on the users that holds each user's PIN code:
pincode.pincode field on the card of each user who will log in to Mobilid.