We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cb697a commit 3ddebfeCopy full SHA for 3ddebfe
interface/web/login/otp.php
@@ -169,10 +169,13 @@ function finish_2fa_success($msg = '') {
169
if (!empty($clientuser['email'])) {
170
$email_to = $clientuser['email'];
171
}
172
- else {
+ elseif(!empty($mail_config['admin_mail'])) {
173
// Admin users are not related to a client, thus use the globally configured email address.
174
$email_to = $mail_config['admin_mail'];
175
176
+ else {
177
+ $app->error('No mail address available to sent an OTP code to.', 'index.php');
178
+ }
179
180
181
$app->ispcmail->setSender($mail_config['admin_mail'], $mail_config['admin_name']);
0 commit comments