xref: /dokuwiki/inc/Menu/Item/Resendpwd.php (revision 48555a307c1c09edcdcf70fbb1cc7dd1d7ba705a)
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    /** @inheritdoc */
13    public function __construct() {
14        global $INPUT;
15        parent::__construct();
16
17        if($INPUT->server->str('REMOTE_USER')) {
18            throw new \RuntimeException("no resendpwd when already logged in");
19        }
20    }
21
22}
23