Example #1
0
 private function error($string)
 {
     $request = $this->app->request();
     Helper_Message::setField($this->app, 'username', $request->post('username'));
     Helper_Message::setField($this->app, 'email', $request->post('email'));
     Helper_Message::setError($this->app, $string);
     $this->app->redirect('/signup');
     die;
 }
Example #2
0
 private function error($string)
 {
     $request = $this->app->request();
     Helper_Message::setField($this->app, 'username', $request->post('username'));
     Helper_Message::setError($this->app, $string);
     $next = Helper_Message::getField('next', "");
     if ($next) {
         $this->app->redirect("/login?next={$next}");
     } else {
         $this->app->redirect('/login');
     }
     die;
 }
Example #3
0
 private function error($string)
 {
     Helper_Message::setError($this->app, $string);
     $this->app->redirect('/login/forgot');
     die;
 }
Example #4
0
 public function error($string)
 {
     Helper_Message::setError($this->app, $string);
     $this->app->redirect('/account');
     die;
 }