hi everyone,

i want to secure the login with SSL and use the Security Component for
that. cake seems to swith to HTTPS
but has trouble calling the new URL

https://server/users/login

giving me a 404 error. I understand this is fixable with $this-
>Security->blackHoleCallback????
but how? what am i doing wrong?

CODE: controller users
================================
    function beforeFilter()
    {

            $this->Security->blackHoleCallback = 'forceSSL';
            $this->Security->requireSecure('login');

                parent::beforeFilter();
                $this->Auth->allow('*');

    }



    function forceSSL()
    {
            $this->log('Redirecting user from HTTP to HTTPS', 'https');
            $this->redirect('https://' . $_SERVER['SERVER_NAME'] . $this-
>here);

        }

================================

appreciate your help. thanks a lot :)

-- 
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

Reply via email to