Exemple #1
0
 /**
  * 
  * @return string
  * @throws \LogicException Raises an error if no different redirect page is found
  */
 private function NextUrl()
 {
     $nextUrl = String::Trim(Request::GetData('nextUrl'));
     if ($nextUrl) {
         return $nextUrl;
     }
     $nextPageUrl = $this->login->GetNextUrl();
     if ($nextPageUrl) {
         return FrontendRouter::Url($nextPageUrl);
     }
     return '';
 }
 /**
  * Saves the login element and returns it
  * @return ContentLogin Returns the login element with form values applied
  */
 protected function SaveElement()
 {
     $this->login->SetNextUrl($this->selectorNext->Save($this->login->GetNextUrl()));
     $this->login->SetPasswordUrl($this->selectorPassword->Save($this->login->GetPasswordUrl()));
     return $this->login;
 }