Increase security by using 2FA methods like e-mail or TOPT.
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;