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