Fixing content type ordering when content_type is not defined.
[akelos.git] / test / fixtures / app / controllers / authentication_controller.php
blobac16fb884e997f8a0ba94549332f820a265c4be5
1 <?php
3 class AuthenticationController extends ApplicationController
5 var $_authorized_users = array('bermi' => 'secret');
7 function __construct(){
8 $this->beforeFilter(array('authenticate' => array('except' => array('index'))));
11 function index() {
12 $this->renderText("Everyone can see me!");
15 function edit(){
16 $this->renderText("I'm only accessible if you know the password");
19 function authenticate(){
20 return $this->_authenticateOrRequestWithHttpBasic('App name', $this->_authorized_users);