31 lines
997 B
PHP
31 lines
997 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use Bitrix\Main\Engine\CurrentUser;
|
|
use Bitrix\Main\Localization\Loc;
|
|
|
|
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
|
|
die();
|
|
}
|
|
|
|
Loc::loadMessages(__FILE__);
|
|
|
|
class JinoveAuthForgotComponent extends CBitrixComponent
|
|
{
|
|
public function executeComponent(): array
|
|
{
|
|
if ((int)CurrentUser::get()->getId() > 0) {
|
|
LocalRedirect(SITE_DIR);
|
|
}
|
|
$GLOBALS["APPLICATION"]->SetTitle(Loc::getMessage("VINO_FORGOT_PAGE_TITLE"));
|
|
$GLOBALS["APPLICATION"]->SetPageProperty("description", Loc::getMessage("VINO_FORGOT_PAGE_DESCRIPTION"));
|
|
$GLOBALS["APPLICATION"]->SetPageProperty("vino_alternates", "N");
|
|
$GLOBALS["APPLICATION"]->SetPageProperty("vino_schema", "N");
|
|
$GLOBALS["APPLICATION"]->SetPageProperty("robots", "noindex, nofollow");
|
|
$this->arResult = ["LOGIN_URL" => SITE_DIR . "login/"];
|
|
$this->includeComponentTemplate();
|
|
|
|
return $this->arResult;
|
|
}
|
|
}
|