예제 #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 '';
 }
예제 #2
0
 /**
  * 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;
 }