xref: /dokuwiki/inc/Menu/Item/Resendpwd.php (revision cf71061da2667f7f873a09d8aa7e8d7f932aa764)
193b8c351SAndreas Gohr<?php
293b8c351SAndreas Gohr
393b8c351SAndreas Gohrnamespace dokuwiki\Menu\Item;
493b8c351SAndreas Gohr
5368ce258SAndreas Gohr/**
6368ce258SAndreas Gohr * Class Resendpwd
7368ce258SAndreas Gohr *
8368ce258SAndreas Gohr * Access the "forgot password" dialog
9368ce258SAndreas Gohr */
1093b8c351SAndreas Gohrclass Resendpwd extends AbstractItem {
1193b8c351SAndreas Gohr
1293b8c351SAndreas Gohr    /** @inheritdoc */
1393b8c351SAndreas Gohr    public function __construct() {
1493b8c351SAndreas Gohr        global $INPUT;
1593b8c351SAndreas Gohr        parent::__construct();
1693b8c351SAndreas Gohr
1793b8c351SAndreas Gohr        if($INPUT->server->str('REMOTE_USER')) {
1893b8c351SAndreas Gohr            throw new \RuntimeException("no resendpwd when already logged in");
1993b8c351SAndreas Gohr        }
20*cf71061dSAndreas Gohr
21*cf71061dSAndreas Gohr        $this->svg = DOKU_INC . 'lib/images/menu/lock-reset.svg';
2293b8c351SAndreas Gohr    }
2393b8c351SAndreas Gohr
2493b8c351SAndreas Gohr}
25