57 lines
3.8 KiB
PHP
57 lines
3.8 KiB
PHP
<?php
|
|
use Bitrix\Main\Localization\Loc;
|
|
|
|
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
|
|
die();
|
|
}
|
|
|
|
Loc::loadMessages(__FILE__);
|
|
$this->addExternalCss("/local/components/jinove/auth.login/templates/.default/style.css");
|
|
$uid = "vino-reset";
|
|
$valid = $arResult["LOGIN"] !== "" && $arResult["CHECKWORD"] !== "";
|
|
?>
|
|
<section class="vino-auth vino-auth--single">
|
|
<div class="vino-auth__card">
|
|
<p class="vino-auth__kicker"><?= Loc::getMessage("VINO_RESET_KICKER") ?></p>
|
|
<h1 class="vino-auth__title"><?= Loc::getMessage("VINO_RESET_TITLE") ?></h1>
|
|
<p class="vino-auth__done" role="status" tabindex="-1" hidden data-auth-done>
|
|
<?= Loc::getMessage("VINO_RESET_DONE") ?>
|
|
<a class="vino-auth__link" href="<?= htmlspecialcharsbx($arResult["LOGIN_URL"]) ?>"><?= Loc::getMessage("VINO_RESET_LOGIN") ?></a>
|
|
</p>
|
|
<?php if (!$valid): ?>
|
|
<p class="vino-auth__err vino-auth__err--static" role="alert"><?= Loc::getMessage("VINO_RESET_ERR_LINK") ?></p>
|
|
<div class="vino-auth__links">
|
|
<a class="vino-auth__link" href="<?= htmlspecialcharsbx($arResult["FORGOT_URL"]) ?>"><?= Loc::getMessage("VINO_RESET_AGAIN") ?></a>
|
|
</div>
|
|
<?php else: ?>
|
|
<p class="vino-auth__lead"><?= Loc::getMessage("VINO_RESET_LEAD") ?></p>
|
|
<form class="vino-auth__form" method="post" novalidate data-auth-reset
|
|
data-login="<?= htmlspecialcharsbx($arResult["LOGIN"]) ?>"
|
|
data-checkword="<?= htmlspecialcharsbx($arResult["CHECKWORD"]) ?>"
|
|
data-again="<?= htmlspecialcharsbx($arResult["FORGOT_URL"]) ?>"
|
|
data-msg-password="<?= htmlspecialcharsbx(Loc::getMessage("VINO_RESET_ERR_PASSWORD")) ?>"
|
|
data-msg-again="<?= htmlspecialcharsbx(Loc::getMessage("VINO_RESET_AGAIN")) ?>"
|
|
data-msg-link="<?= htmlspecialcharsbx(Loc::getMessage("VINO_RESET_ERR_LINK")) ?>"
|
|
data-msg-altcha="<?= htmlspecialcharsbx(Loc::getMessage("VINO_RESET_ERR_ALTCHA")) ?>"
|
|
data-msg-too-often="<?= htmlspecialcharsbx(Loc::getMessage("VINO_RESET_ERR_TOO_OFTEN")) ?>"
|
|
data-msg-retry="<?= htmlspecialcharsbx(Loc::getMessage("VINO_RESET_ERR_RETRY")) ?>"
|
|
data-msg-error="<?= htmlspecialcharsbx(Loc::getMessage("VINO_RESET_ERR_COMMON")) ?>"
|
|
data-label-show="<?= htmlspecialcharsbx(Loc::getMessage("VINO_RESET_SHOW")) ?>"
|
|
data-label-hide="<?= htmlspecialcharsbx(Loc::getMessage("VINO_RESET_HIDE")) ?>">
|
|
<input type="text" name="website" class="vino-hp" tabindex="-1" autocomplete="off" aria-hidden="true">
|
|
<div class="vino-auth__field">
|
|
<label class="vino-auth__label" for="<?= $uid ?>-password"><?= Loc::getMessage("VINO_RESET_PASSWORD") ?></label>
|
|
<span class="vino-auth__password">
|
|
<input class="vino-inp vino-auth__input" id="<?= $uid ?>-password" type="password" name="password" autocomplete="new-password" minlength="8" maxlength="200" aria-describedby="<?= $uid ?>-hint <?= $uid ?>-err" required>
|
|
<button type="button" class="vino-auth__toggle" data-password-toggle hidden aria-controls="<?= $uid ?>-password"><?= Loc::getMessage("VINO_RESET_SHOW") ?></button>
|
|
</span>
|
|
<span class="vino-auth__hint" id="<?= $uid ?>-hint"><?= Loc::getMessage("VINO_RESET_HINT") ?></span>
|
|
</div>
|
|
<altcha-widget name="altcha" challenge="/bitrix/services/main/ajax.php?action=jinove:vinoteca.lead.challenge" auto="onload" display="invisible"></altcha-widget>
|
|
<p class="vino-auth__err" id="<?= $uid ?>-err" role="alert" data-auth-err></p>
|
|
<button class="vino-btn vino-auth__submit" type="submit"><?= Loc::getMessage("VINO_RESET_SUBMIT") ?></button>
|
|
</form>
|
|
<?php endif; ?>
|
|
</div>
|
|
</section>
|