/**
  * Process the login, create the user session and then redirect to 
  * the appropriate page
  */
 public function Login()
 {
     $user = new ExampleUser();
     if ($user->Login(RequestUtil::Get('username'), RequestUtil::Get('password'))) {
         // login success
         $this->SetCurrentUser($user);
         $this->Redirect('SecureExample.UserPage');
     } else {
         // login failed
         $this->Redirect('SecureExample.LoginForm', 'Unknown username/password combination');
     }
 }
 /**
  * Process the login, create the user session and then redirect to 
  * the appropriate page
  */
 public function Login()
 {
     $user = new ExampleUser();
     if ($user->Login(RequestUtil::Get('username'), RequestUtil::Get('password'))) {
         // login success
         $this->SetCurrentUser($user);
         $this->Redirect('SecureExample.UserPage');
     } else {
         // login failed
         $this->Redirect('SecureExample.LoginForm', 'Combinaçãoo de usuário ou senha incorretos');
     }
 }