Пример #1
0
        case "reset-password":
            if (isset($get['confirm']) && $get['confirm'] == "true") {
                return $controller->pageSetPassword(false);
            } else {
                return $controller->denyResetPassword();
            }
        case "captcha":
            return $controller->captcha();
        case "settings":
            return $controller->pageAccountSettings();
        default:
            return $controller->page404();
    }
});
$app->post('/account/:action/?', function ($action) use($app) {
    $controller = new UF\AccountController($app);
    switch ($action) {
        case "login":
            return $controller->login();
        case "register":
            return $controller->register();
        case "resend-activation":
            return $controller->resendActivation();
        case "forgot-password":
            return $controller->forgotPassword();
        case "set-password":
            return $controller->setPassword(true);
        case "reset-password":
            return $controller->setPassword(false);
        case "settings":
            return $controller->accountSettings();