diff --git a/views/view_10_admin__6_system_configuration.class.php b/views/view_10_admin__6_system_configuration.class.php index 049baeb4..6c48f604 100644 --- a/views/view_10_admin__6_system_configuration.class.php +++ b/views/view_10_admin__6_system_configuration.class.php @@ -48,6 +48,13 @@ public function processView() } } + private function _doConfigChecks() + { + if ((ifdef('2FA_REQUIRED_PERMS') > 0) && SMS_Sender::usesUserMobile() && strlen(ifdef('2FA_SENDER_ID')) == 0) { + print_message("2-Factor authentication will not work until you set the 2FA_SENDER_ID setting", 'error'); + } + } + public function printView() { if (JETHRO_VERSION == 'DEV') { @@ -61,6 +68,7 @@ public function printView() _doConfigChecks(); ?>