Esempio n. 1
0
 private function success($userid)
 {
     Helper_Session::setUserInSession($userid);
     $next = Helper_Message::getField('next', "");
     $matches = array();
     preg_match('#/[A-Za-z0-9]+#i', $next, $matches);
     $nextFound = count($matches) == 1 ? $matches[0] : "";
     if ($next !== $nextFound) {
         $next = "";
     }
     if ($next) {
         $this->app->redirect($next);
     } else {
         $this->app->redirect('/');
     }
     die;
 }
Esempio n. 2
0
 private function success($userid)
 {
     Helper_Session::setUserInSession($userid);
     $this->app->redirect('/');
     die;
 }