I am only starting in on SSL and getting nowhere.
Attempting to secure 2 actions to start (will secure entire backend IF I can
get these running first)
Users Controller:
public function beforeFilter() {
parent::beforeFilter();
$this->Auth->allowedActions = array( 'login', 'logout', 'register');
$this->Auth->fields = array( 'username' => 'email', 'password' =>
'security' );
$this->Security->blackHoleCallback = 'forceSSL';
$this->Security->requireSecure( 'login', 'register');
//$this->Security->requireSecure( array('login', 'register'));
$this->Auth->autoRedirect = false;
}
App Controller:
Has Security in $component array
function forceSSL() {
$this->redirect('https://' . $_SERVER['SERVER_NAME'] .
$this->here);
}
All I get is infinite never ending loop browser message.
Can anyone help as this is just the basics as the cookbook points out and
still im getting nowhere.
Thanks,
K
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php