‪TYPO3CMS  9.5
UsernamePasswordLoginProvider.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
23 
29 {
30  const ‪SIGNAL_getPageRenderer = 'getPageRenderer';
31 
38  public function ‪render(‪StandaloneView $view, ‪PageRenderer $pageRenderer, ‪LoginController $loginController)
39  {
40  GeneralUtility::makeInstance(ObjectManager::class)->get(Dispatcher::class)->dispatch(__CLASS__, self::SIGNAL_getPageRenderer, [$pageRenderer]);
41 
42  $pageRenderer->‪loadRequireJsModule('TYPO3/CMS/Backend/UserPassLogin');
43 
44  $view->‪setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName('EXT:backend/Resources/Private/Templates/UserPassLoginForm.html'));
45  if (GeneralUtility::getIndpEnv('TYPO3_SSL')) {
46  $view->‪assign('presetUsername', GeneralUtility::_GP('u'));
47  $view->‪assign('presetPassword', GeneralUtility::_GP('p'));
48  }
49  }
50 }
‪TYPO3\CMS\Backend\LoginProvider\LoginProviderInterface
Definition: LoginProviderInterface.php:25
‪TYPO3\CMS\Core\Page\PageRenderer\loadRequireJsModule
‪loadRequireJsModule($mainModuleName, $callBackFunction=null)
Definition: PageRenderer.php:1593
‪TYPO3\CMS\Core\Page\PageRenderer
Definition: PageRenderer.php:35
‪TYPO3\CMS\Backend\LoginProvider\UsernamePasswordLoginProvider\render
‪render(StandaloneView $view, PageRenderer $pageRenderer, LoginController $loginController)
Definition: UsernamePasswordLoginProvider.php:38
‪TYPO3\CMS\Fluid\View\AbstractTemplateView\setTemplatePathAndFilename
‪setTemplatePathAndFilename($templatePathAndFilename)
Definition: AbstractTemplateView.php:100
‪TYPO3\CMS\Extbase\Mvc\View\ViewInterface\assign
‪TYPO3 CMS Extbase Mvc View ViewInterface assign($key, $value)
‪TYPO3\CMS\Backend\LoginProvider\UsernamePasswordLoginProvider
Definition: UsernamePasswordLoginProvider.php:29
‪TYPO3\CMS\Fluid\View\StandaloneView
Definition: StandaloneView.php:32
‪TYPO3\CMS\Backend\LoginProvider\UsernamePasswordLoginProvider\SIGNAL_getPageRenderer
‪const SIGNAL_getPageRenderer
Definition: UsernamePasswordLoginProvider.php:30
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:45
‪TYPO3\CMS\Backend\Controller\LoginController
Definition: LoginController.php:49
‪TYPO3\CMS\Extbase\Object\ObjectManager
Definition: ObjectManager.php:25
‪TYPO3\CMS\Backend\LoginProvider
Definition: LoginProviderInterface.php:2
‪TYPO3\CMS\Extbase\SignalSlot\Dispatcher
Definition: Dispatcher.php:28