Now I used the Code from
http://book.cakephp.org/view/1250/Authentication
but every time I get an Error:
Warning (2): Cannot modify header information - headers already sent
by (output started at C:\xampp\xampplite\htdocs\cakephp\cake\libs
\debugger.php:673) [CORE\cake\libs\controller\controller.
On Mar 1, 2011, at 03:02, Dreknor wrote:
> Notice (8): Use of undefined constant VALID_NOT_EMPTY - assumed
> 'VALID_NOT_EMPTY' [CORE\cake\libs\class_registry.php, line 141]
>
> Notice (8): Use of undefined constant VALID_EMAIL - assumed
> 'VALID_EMAIL' [CORE\cake\libs\class_registry.php, line 141
Hi,
I would like to work with cakephp but everey time I used auth I only
get problems:
Notice (8): Use of undefined constant VALID_NOT_EMPTY - assumed
'VALID_NOT_EMPTY' [CORE\cake\libs\class_registry.php, line 141]
Notice (8): Use of undefined constant VALID_EMAIL - assumed
'VALID_EMAIL' [CORE\
... are you getting any error message?
if so - post them
what debug level setting?
... which version of cake are you using?
Are you implementing it on something you've build already or are working
though the tutorial only? ( meaning you only have 'widgets' model, etc.)
On 6/9/10 5:22 PM, M
This is on my development computer, do development. The app has yet to
be put into production server.
I am not sure of how to test whether the behavior is properly inserted
into my app_controller. I have just followed the directions on the
cake site numerous times with no results. Do you know of a
... are you doing this in prod. or dev. environment at this poing?
What are the details of your set up?
On 6/9/10 9:26 AM, Matt Y wrote:
So its obviously nothing new that the documentation on ACL + AUTH
implementations is for the most part... lacking
I am trying to implement the AclBehavior in
So its obviously nothing new that the documentation on ACL + AUTH
implementations is for the most part... lacking
I am trying to implement the AclBehavior into my users and groups
controllers, but I just can't seem to get them to auto add AROs into
my database. I have followed the cake tutorials f
Yep. It's all one Cake App. Any ideas?
On Mar 7, 11:43 am, cricket wrote:
> A subdomain is usually a completely separate site. Do you already have
> the same Cake app serving all of your subdomains?
>
> On Mar 6, 5:34 pm, Kyle Decot wrote:
>
>
>
> > I have a couple different subdomains on my sit
A subdomain is usually a completely separate site. Do you already have
the same Cake app serving all of your subdomains?
On Mar 6, 5:34 pm, Kyle Decot wrote:
> I have a couple different subdomains on my site but I am having some
> problems w/ the Auth Component. I login fine under the standard ww
I have a couple different subdomains on my site but I am having some
problems w/ the Auth Component. I login fine under the standard www
subdomain but then if I go to a different subdomain, then I am no
longer logged in. How do I make sure that my Auth login persists
across all of my subdomains?
C
t;Session->destroy();
> > > > $this->redirect(array('controller' =>
> > > > 'registrations',
> > > > 'action' => 'pending_email_confirmation'));
> > > > }
> > > &g
; > > 'action' => 'pending_email_confirmation'));
> > > }
> > > Dave
>
> > > -Original Message-
> > > From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On
> > > Behalf
> >
gt;redirect(array('controller' => 'registrations',
> > 'action' => 'pending_email_confirmation'));
> > }
> > Dave
>
> > -Original Message-----
> > From: cake-php@googlegroups.com [mailto:cake-...@go
$this->redirect(array('controller' => 'registrations',
> 'action' => 'pending_email_confirmation'));
> }
> Dave
>
>
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com]
'pending_email_confirmation'));
}
Dave
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Simon
Sent: November-02-09 6:49 PM
To: CakePHP
Subject: Two Auth problems never found sloutions for it
1. is save the last login w
1. is save the last login without the auth redirect = to false
2. if the email is not verified redirect them
if you have any sloutions please share
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To
On Sun, May 11, 2008 at 11:38 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> Hi, thanks for taking the time to reply. I tried to add your example
> to my Account controller but that did not work. I had an existing Auth-
>>allow array that was:
>
> $this->Auth->allow('login', 'index')
>
> I was trying dif
Hi, thanks for taking the time to reply. I tried to add your example
to my Account controller but that did not work. I had an existing Auth-
>allow array that was:
$this->Auth->allow('login', 'index')
I was trying different possibilities. In the end I removed it
completely and now it's working o
In my 'Users' controller I do this:
beforeFilter() {
$this->Auth->allow(array('logout') );
parent::beforeFilter();
}
function login() {}
function logout()
{
$this->Auth->logout();
$this->flash("You are now logged out of the site.", '/' );
}
I don't know if this is "correct", bu
Hi, I'm having several, probably related, problems with the Auth
class. First of all, I'm a Cake noob but I've been searching for
answers and have finally resorted to posting.
My app requires authentication before access to any controller/action.
On my shared server I can't use 'users' or 'admin'
Also, it is important to note under which mode you are using Auth.
For example, I am using 'actions' mode alongside the AclComponent. In
this case, I use the following:
function beforeFilter()
{
$this->Auth->allowedActions = array('reset_password');
parent::beforeFilter();
}
On Feb 11,
Here's a shameless plug for my site:
http://www.webdevelopment2.com/cakephp-auth-component-tutorial-2/
There's some sample code you can download there and compare certain things.
On Feb 11, 2008 1:21 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> On Feb 11, 2008 2:05 PM, Neil <[EMAIL PROTECTE
On Feb 11, 2008 2:05 PM, Neil <[EMAIL PROTECTED]> wrote:
>
> Thanks, but that is not the problem then because in my current setup &
> for testing I put"
> var $components = array('Auth');
> in every controller instead of app_controller and it still did not
> work.
Dude, I have no idea why it's no
Thanks, but that is not the problem then because in my current setup &
for testing I put"
var $components = array('Auth');
in every controller instead of app_controller and it still did not
work.
On Feb 11, 2:01 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Feb 11, 2008 1:59 PM, Neil <[EMAI
On Feb 11, 2008 1:59 PM, Neil <[EMAIL PROTECTED]> wrote:
>
> thanks for the quick reply.
>
> what does: parrent::beforeFilter(); do?
>
> thanks!
It executes anything that is in the beforeFilter() method of the parent class.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herd
thanks for the quick reply.
what does: parrent::beforeFilter(); do?
thanks!
On Feb 11, 1:42 pm, Baz <[EMAIL PROTECTED]> wrote:
> In your controllers, shouldn't you have:
>
> function beforeFilter()
>{
>parrent::beforeFilter();
>$this->Auth->allow('action1', 'action2', ect.
In your controllers, shouldn't you have:
function beforeFilter()
{
parrent::beforeFilter();
$this->Auth->allow('action1', 'action2', ect..);
}
On Feb 11, 2008 12:38 PM, Neil <[EMAIL PROTECTED]> wrote:
>
> I still can't get this to work:
>
> I have added this to my app
I still can't get this to work:
I have added this to my app controler:
var $components = array('Auth');
and then to all my other controllers where I want to allow access to
certain cations I did:
function beforeFilter()
{
$this->Auth->allow('action1', 'action2', ect..);
}
It app
Here is how I solve this problem:
if (isset($this->params[Configure::read('Routing.admin')]))
$this->Auth->allow( "" );
else
{
if ($this->action != "login" && $this->action != "logout") //put here
any actions you want to deny access to
$this->Auth->allow($this->act
I think you'll need to post you app_controller code (as pertains to auth)
you may have some info in the debug file
On 09/02/2008, Neil <[EMAIL PROTECTED]> wrote:
>
>
> this is the error I am getting:
>
> The page isn't redirecting properly
>
> Firefox has detected that the server is redirecting t
this is the error I am getting:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for
this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing
to accept
cookies.
--~--~--
ok thanks for the info!
I changed that error however my site still is not working.
in all my controllers I have:
var $components = array('Auth');
and then when ever I want an action to work without Authentication i
put:
function beforeFilter()
{
$this->Auth->allow('action1', 'actio
On Feb 8, 2008 7:57 PM, Neil <[EMAIL PROTECTED]> wrote:
>
> $this->Auth->allow('action1', 'action2', 'action3')
> vs
> $this->Auth->allow('login');
>
> whats the difference?
>
The difference is that the Auth component automatically allows you to
access an action called 'login'. If you do
$this->
$this->Auth->allow('action1', 'action2', 'action3')
vs
$this->Auth->allow('login');
whats the difference?
On Feb 8, 7:48 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Feb 8, 2008 7:31 PM, Neil <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm using the Auth component. I am running into some troubl
On Feb 8, 2008 7:31 PM, Neil <[EMAIL PROTECTED]> wrote:
>
> I'm using the Auth component. I am running into some trouble and I am
> not sure what is causing it.
> As soon as I add the auth component to my site, I can no longer access
> any of the pages. I tried putting this:
> $this->Auth->allow('
I'm using the Auth component. I am running into some trouble and I am
not sure what is causing it.
As soon as I add the auth component to my site, I can no longer access
any of the pages. I tried putting this:
$this->Auth->allow('login'); but it did not work.
--~--~-~--~~~-
36 matches
Mail list logo