‪TYPO3CMS  ‪main
FrontendBackendUserAuthentication.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
18 namespace ‪TYPO3\CMS\Backend;
19 
20 use Psr\Http\Message\ServerRequestInterface;
22 
29 {
36  protected ‪$formfield_uname = '';
37 
44  protected ‪$formfield_uident = '';
45 
53  protected ‪$formfield_status = '';
54 
60  public ‪$writeStdLog = false;
61 
67  public ‪$writeAttemptLog = false;
68 
75  public function ‪backendCheckLogin(ServerRequestInterface $request = null)
76  {
77  if (empty($this->user['uid'])) {
78  return false;
79  }
80  // Check Hardcoded lock on BE
81  if (‪$GLOBALS['TYPO3_CONF_VARS']['BE']['adminOnly'] < 0) {
82  return false;
83  }
84  return $this->‪isUserAllowedToLogin();
85  }
86 
92  protected function ‪hasEditAccessToLiveWorkspace(): bool
93  {
94  return true;
95  }
96 }
‪TYPO3\CMS\Backend\FrontendBackendUserAuthentication\$writeStdLog
‪bool $writeStdLog
Definition: FrontendBackendUserAuthentication.php:56
‪TYPO3\CMS\Backend\FrontendBackendUserAuthentication
Definition: FrontendBackendUserAuthentication.php:29
‪TYPO3\CMS\Backend\FrontendBackendUserAuthentication\backendCheckLogin
‪bool backendCheckLogin(ServerRequestInterface $request=null)
Definition: FrontendBackendUserAuthentication.php:70
‪TYPO3\CMS\Backend
‪TYPO3\CMS\Backend\FrontendBackendUserAuthentication\$writeAttemptLog
‪bool $writeAttemptLog
Definition: FrontendBackendUserAuthentication.php:62
‪TYPO3\CMS\Backend\FrontendBackendUserAuthentication\$formfield_status
‪string $formfield_status
Definition: FrontendBackendUserAuthentication.php:50
‪TYPO3\CMS\Backend\FrontendBackendUserAuthentication\$formfield_uident
‪string $formfield_uident
Definition: FrontendBackendUserAuthentication.php:42
‪TYPO3\CMS\Backend\FrontendBackendUserAuthentication\hasEditAccessToLiveWorkspace
‪hasEditAccessToLiveWorkspace()
Definition: FrontendBackendUserAuthentication.php:87
‪TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isUserAllowedToLogin
‪bool isUserAllowedToLogin()
Definition: BackendUserAuthentication.php:1933
‪TYPO3\CMS\Core\Authentication\BackendUserAuthentication
Definition: BackendUserAuthentication.php:61
‪TYPO3\CMS\Backend\FrontendBackendUserAuthentication\$formfield_uname
‪string $formfield_uname
Definition: FrontendBackendUserAuthentication.php:35
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:25