public function __construct() { parent::__construct(); session_start(); $this->enableLessRunTimeCompile = false; $this->canUserChangeOwnPassword = false; $this->httpHandlers = array(); $this->superGlobals = new SuperGlobals(); }
/** * @throws Exception */ private function CheckAdminGrant() { if (!$this->app->GetUserAuthorizationStrategy()->HasAdminGrant($this->app->GetCurrentUser())) { throw new Exception(GetCaptions('UTF-8')->GetMessageString('AccessDenied')); } }
/** * @param string $newPassword */ private function ChangePassword($newPassword) { $this->userManager->ChangeUserPassword($this->app->GetUserAuthorizationStrategy()->GetCurrentUserId(), $newPassword); }