Increase security within your network by adding an additional authentication method besides username and password.
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
Also new created driver should be added into array
public $drivers = [ EmailDriver::class, GoogleAuthenticatorDriver::class, ];
humhub\modules\twofa\Module->defaultDriver is used for Users from enforced Groups:
public $defaultDriver = EmailDriver::class;