Skip to content

Commit 3b838b8

Browse files
Added Missing page title
1 parent bb6103e commit 3b838b8

File tree

1 file changed

+4
-0
lines changed
  • app/code/Magento/LoginAsCustomer/Controller/Login

1 file changed

+4
-0
lines changed

app/code/Magento/LoginAsCustomer/Controller/Login/Proceed.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
declare(strict_types=1);
77
namespace Magento\LoginAsCustomer\Controller\Login;
88

9+
use Magento\Backend\Model\View\Result\Page;
910
use Magento\Framework\Controller\ResultFactory;
1011
use Magento\Framework\Controller\ResultInterface;
1112
use Magento\Framework\App\Action\HttpGetActionInterface;
@@ -24,6 +25,9 @@ class Proceed extends Action implements HttpGetActionInterface
2425
*/
2526
public function execute():ResultInterface
2627
{
28+
/** @var Page $resultPage */
29+
$resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
30+
$resultPage->getConfig()->getTitle()->set(__("You are logged in"));
2731
return $this->resultFactory->create(ResultFactory::TYPE_PAGE);
2832
}
2933
}

0 commit comments

Comments
 (0)