‪TYPO3CMS  10.4
UsernamePasswordLoginProvider.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
23 
29 {
36  public function ‪render(‪StandaloneView $view, ‪PageRenderer $pageRenderer, ‪LoginController $loginController)
37  {
38  $pageRenderer->‪loadRequireJsModule('TYPO3/CMS/Backend/UserPassLogin');
39 
40  $view->‪setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName('EXT:backend/Resources/Private/Templates/UserPassLoginForm.html'));
41  if (GeneralUtility::getIndpEnv('TYPO3_SSL')) {
42  $view->‪assign('presetUsername', GeneralUtility::_GP('u'));
43  $view->‪assign('presetPassword', GeneralUtility::_GP('p'));
44  }
45 
46  $view->‪assign('enablePasswordReset', GeneralUtility::makeInstance(PasswordReset::class)->isEnabled());
47  }
48 }
‪TYPO3\CMS\Backend\LoginProvider\LoginProviderInterface
Definition: LoginProviderInterface.php:26
‪TYPO3\CMS\Backend\Authentication\PasswordReset
Definition: PasswordReset.php:58
‪TYPO3\CMS\Core\Page\PageRenderer\loadRequireJsModule
‪loadRequireJsModule($mainModuleName, $callBackFunction=null)
Definition: PageRenderer.php:1493
‪TYPO3\CMS\Core\Page\PageRenderer
Definition: PageRenderer.php:42
‪TYPO3\CMS\Backend\LoginProvider\UsernamePasswordLoginProvider\render
‪render(StandaloneView $view, PageRenderer $pageRenderer, LoginController $loginController)
Definition: UsernamePasswordLoginProvider.php:36
‪TYPO3\CMS\Fluid\View\AbstractTemplateView\setTemplatePathAndFilename
‪setTemplatePathAndFilename($templatePathAndFilename)
Definition: AbstractTemplateView.php:103
‪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:34
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Backend\Controller\LoginController
Definition: LoginController.php:54
‪TYPO3\CMS\Backend\LoginProvider