1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Minor adjustment in Tfa class

This commit is contained in:
Ryan Cramer
2020-06-12 15:15:05 -04:00
parent 602ac0e1a5
commit 8d7f2d133c

View File

@@ -519,7 +519,11 @@ class Tfa extends WireData implements Module, ConfigurableModule {
/** @var Tfa $module */
$module = $this->wire()->modules->getModule($autoType);
if($module) {
$module->autoEnableUser($user);
if($module->autoEnableSupported($user)) {
$module->autoEnableUser($user);
} else {
$module = null;
}
}
}
}