~xibo-maintainers/xibo/release21

« back to all changes in this revision

Viewing changes to lib/Controller/Login.php

  • Committer: GitHub
  • Author(s): Peter
  • Date: 2019-10-01 09:01:54 UTC
  • mfrom: (776.1.8)
  • Revision ID: git-v1:73d87816bee9ac5aded825d22b177f00c4747b8a
Merge pull request #689 from PeterMis/brooks-2.1.1

Brooks 2.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
use Xibo\Entity\User;
23
23
use Xibo\Exception\AccessDeniedException;
24
24
use Xibo\Exception\ConfigurationException;
 
25
use Xibo\Exception\InvalidArgumentException;
25
26
use Xibo\Exception\NotFoundException;
26
27
use Xibo\Exception\XiboException;
27
28
use Xibo\Factory\UserFactory;
452
453
                $issuer = $appName;
453
454
            }
454
455
 
 
456
            if ($mailFrom == '') {
 
457
                throw new InvalidArgumentException(__('Sending email address in CMS Settings is not configured'), 'mail_from');
 
458
            }
 
459
 
455
460
            $tfa = new TwoFactorAuth($issuer);
456
461
 
457
462
            // Nonce parts (nonce isn't ever stored, only the hash of it is stored, it only exists in the email)