Guest User

Untitled

a guest
May 5th, 2016
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php defined('SYSPATH') or die('No direct script access.');
  2.  
  3. class Controller_Auth extends Controller {
  4.     private $session;
  5.  
  6.     public function before()
  7.     {
  8.         parent::before();
  9.         Session::$default='database';
  10.         $this->session=Session::instance();
  11.     }
  12.    
  13.     public function action_login()
  14.     {
  15.         $username = $this->request->post("username");
  16.         $password = $this->request->post("password");
  17.         echo $password;
  18.         die();
  19.     }
  20.    
  21.     public function action_logout()
  22.     {
  23.     //  $this->response->body('hello, world!');
  24.     }
  25.  
  26. } // End Auth
  27. ?>
Add Comment
Please, Sign In to add comment