xref: /dokuwiki/inc/Menu/Item/Resendpwd.php (revision 93b8c351fad5246a7a91c86418f15bec833dc99f)
1<?php
2
3namespace dokuwiki\Menu\Item;
4
5class Resendpwd extends AbstractItem {
6
7    /** @inheritdoc */
8    public function __construct() {
9        global $INPUT;
10        parent::__construct();
11
12        $this->category = 'user';
13
14        if($INPUT->server->str('REMOTE_USER')) {
15            throw new \RuntimeException("no resendpwd when already logged in");
16        }
17    }
18
19}
20