Resendpwd.php 476 B

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