Commit adabe559 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Fix CGL

parent a81b3663
Pipeline #9070 passed with stages
in 7 minutes and 43 seconds
......@@ -20,11 +20,6 @@
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Utility\GeneralUtility;
// Make sure that we are executed only in TYPO3 context
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// Error codes:
define('TX_TER_ERROR_GENERAL_EXTREPDIRDOESNTEXIST', '100');
define('TX_TER_ERROR_GENERAL_NOUSERORPASSWORD', '101');
......@@ -116,7 +111,7 @@ class tx_ter_helper
throw new \T3o\Ter\Exception\UnauthorizedException('No user or no password submitted.', TX_TER_ERROR_GENERAL_NOUSERORPASSWORD);
}
$user = $this->getUserByUsername($accountData->username);
$user = $this->getUserByUsername($accountData->username);
if ($user) {
if (!$this->userIsAlreadyLoggedIn($accountData) && !$this->ldapValidationSucceeded($accountData)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment