Increase security within your network by adding an additional authentication method besides username and password.
Available methods:
Administrators can individually define which user groups are required to use an additional authentication method. For administrators themselves, a second authentication method will be enabled by default.
New driver should be extended from humhub\modules\twofa\drivers\BaseDriver
in the folder drivers
.
Also new created driver should be added into array humhub\modules\twofa\Module->drivers
:
public $drivers = [
EmailDriver::class,
GoogleAuthenticatorDriver::class,
];
Default driver humhub\modules\twofa\Module->defaultDriver
is used for Users from enforced Groups:
public $defaultDriver = EmailDriver::class;