Table of Contents
Identification mode (hidden option)
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.
Prerequisite
For this feature to work, the connection must be set to the 'identification required' mode.
- With an administrator account, open the Mobilid connector administration page.
- Go to the connection list.
- Set the mode of the connection concerned to 'identification required'.
Activate the option
The option is enabled by adding a constant in Dolibarr.
- With an administrator account, go on page Home - Setup - Other setup.
- Add a new constant named
MOBILIDCONNECT_IDENTIFY_MODE. - Set its value to one of the modes below and save.
Available modes
| 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. |
Mode 2: Encrypted password
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.
Mode 3: PIN code
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:
- Go on page Home - Setup - Modules, open the setup of the Users & Groups module.
- Choose the Complementary attributes (Users) tab.
- Add a new attribute with code
pincode. - Fill in the
pincodefield on the card of each user who will log in to Mobilid.
