mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-08 01:37:36 +00:00
- moved admin user password and locking functionality from PasswordManagement to User module - moved customer password upgrade from PasswordManagement to Customer module - renamed PasswordManagement module to EncryptionKey to contain the encryption key management code
40 lines
1.3 KiB
PHP
40 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
*
|
|
* Copyright © 2015 Magento. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\EncryptionKey\Controller\Adminhtml\Crypt\Key;
|
|
|
|
/**
|
|
* Key Index action
|
|
*/
|
|
class Index extends \Magento\EncryptionKey\Controller\Adminhtml\Crypt\Key
|
|
{
|
|
/**
|
|
* Render main page with form
|
|
*
|
|
* @return void
|
|
*/
|
|
public function execute()
|
|
{
|
|
/** @var \Magento\Framework\App\DeploymentConfig\Writer $writer */
|
|
$writer = $this->_objectManager->get('Magento\Framework\App\DeploymentConfig\Writer');
|
|
if (!$writer->checkIfWritable()) {
|
|
$this->messageManager->addError(__('Deployment configuration file is not writable.'));
|
|
}
|
|
|
|
$this->_view->loadLayout();
|
|
$this->_setActiveMenu('Magento_EncryptionKey::system_crypt_key');
|
|
$this->_view->getPage()->getConfig()->getTitle()->prepend(__('Encryption Key'));
|
|
|
|
if (($formBlock = $this->_view->getLayout()->getBlock('crypt.key.form')) &&
|
|
($data = $this->_objectManager->get('Magento\Backend\Model\Session')->getFormData(true))) {
|
|
/* @var \Magento\EncryptionKey\Block\Adminhtml\Crypt\Key\Form $formBlock */
|
|
$formBlock->setFormData($data);
|
|
}
|
|
|
|
$this->_view->renderLayout();
|
|
}
|
|
}
|