Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php defined('SYSPATH') or die('No direct script access.');
- class Controller_Auth extends Controller {
- private $session;
- public function before()
- {
- parent::before();
- Session::$default='database';
- $this->session=Session::instance();
- }
- public function action_login()
- {
- $username = $this->request->post("username");
- $password = $this->request->post("password");
- echo $password;
- die();
- }
- public function action_logout()
- {
- // $this->response->body('hello, world!');
- }
- } // End Auth
- ?>
Add Comment
Please, Sign In to add comment