User Tools

Site Tools


dolibarrconnectoridentifymode

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.

  1. With an administrator account, open the Mobilid connector administration page.
  2. Go to the connection list.
  3. Set the mode of the connection concerned to 'identification required'.

Activate the option

The option is enabled by adding a constant in Dolibarr.

  1. With an administrator account, go on page Home - Setup - Other setup.
  2. Add a new constant named MOBILIDCONNECT_IDENTIFY_MODE.
  3. 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:

  1. Go on page Home - Setup - Modules, open the setup of the Users & Groups module.
  2. Choose the Complementary attributes (Users) tab.
  3. Add a new attribute with code pincode.
  4. Fill in the pincode field on the card of each user who will log in to Mobilid.
dolibarrconnectoridentifymode.txt · Last modified: by fappels