[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/Menu/Item/ -> Resendpwd.php (source)

   1  <?php
   2  
   3  namespace dokuwiki\Menu\Item;
   4  
   5  /**
   6   * Class Resendpwd
   7   *
   8   * Access the "forgot password" dialog
   9   */
  10  class Resendpwd extends AbstractItem
  11  {
  12      /** @inheritdoc */
  13      public function __construct()
  14      {
  15          global $INPUT;
  16          parent::__construct();
  17  
  18          if ($INPUT->server->str('REMOTE_USER')) {
  19              throw new \RuntimeException("no resendpwd when already logged in");
  20          }
  21  
  22          $this->svg = DOKU_INC . 'lib/images/menu/lock-reset.svg';
  23      }
  24  }