Commit 8e6ad611 authored by Thomas Löffler's avatar Thomas Löffler

Replaces TSFE global with $GLOBALS

parent 6716855e
Pipeline #1901 passed with stages
in 2 minutes and 13 seconds
......@@ -134,15 +134,13 @@ class tx_ter_helper
*/
public function getValidUser($accountData)
{
global $TSFE;
if (!strlen($accountData->username) || (!strlen($accountData->password))) {
throw new tx_ter_exception_unauthorized ('No user or no password submitted.', TX_TER_ERROR_GENERAL_NOUSERORPASSWORD);
}
$res = $this->getDatabaseConnection()->exec_SELECTquery(
'*', 'fe_users',
'username=' . $this->getDatabaseConnection()->fullQuoteStr($accountData->username, 'fe_users') . $TSFE->sys_page->enableFields('fe_users')
'username=' . $this->getDatabaseConnection()->fullQuoteStr($accountData->username, 'fe_users') . $this->getTyposcriptFrontendObject()->sys_page->enableFields('fe_users')
);
if ($row = $this->getDatabaseConnection()->sql_fetch_assoc($res)) {
......
Markdown is supported
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