. */ namespace SP\Modules\Web\Controllers\UserPassReset; use SP\Modules\Web\Controllers\ControllerBase; use SP\Modules\Web\Util\ErrorUtil; /** * Class ResetController */ final class ResetController extends ControllerBase { /** * @param string|null $hash * */ public function resetAction(?string $hash = null): void { $this->layoutHelper->getCustomLayout('reset', strtolower($this->getViewBaseName())); if ($hash !== null && $this->configData->isMailEnabled()) { $this->view->assign('hash', $hash); } else { ErrorUtil::showErrorInView($this->view, self::ERR_UNAVAILABLE, true, 'reset'); } $this->view(); } }