vendor/pimcore/pimcore/bundles/AdminBundle/Resources/views/Admin/Login/lostpassword.html.php line 22

Open in your IDE?
  1. <?php
  2. /** @var \Pimcore\Templating\PhpEngine $view */
  3. $view->extend('PimcoreAdminBundle:Admin/Login:layout.html.php');
  4. $this->get("translate")->setDomain("admin");
  5. ?>
  6. <?php if ($this->getRequest()->getMethod() === 'POST') { ?>
  7.     <div class="text error">
  8.         <?= $this->translate("A temporary login link has been sent to your email address."); ?>
  9.         <br/>
  10.         <?= $this->translate("Please check your mailbox."); ?>
  11.     </div>
  12. <?php } else { ?>
  13.     <div class="text info">
  14.         <?= $this->translate("Enter your username and pimcore will send a login link to your email address"); ?>
  15.     </div>
  16.     <form method="post" action="<?= $view->router()->path('pimcore_admin_login_lostpassword'?>">
  17.         <input type="text" name="username" autocomplete="username" placeholder="<?= $this->translate("Username"); ?>" required autofocus>
  18.         <input type="hidden" name="csrfToken" value="<?= $this->csrfToken ?>">
  19.         <button type="submit" name="submit"><?= $this->translate("Submit"); ?></button>
  20.     </form>
  21. <?php ?>
  22. <a href="<?= $view->router()->path('pimcore_admin_login'?>"><?= $this->translate("Back to Login"); ?></a>
  23. <?= $this->breachAttackRandomContent(); ?>