hi,
have u given the login action in ur controller?

On Feb 7, 4:35 pm, WhyNotSmile <[email protected]> wrote:
> Thanks.
>
> I've done that now, and it's still not working.  I'm not even getting
> auth error messages - it's just taking me back to the login form.
>
> Any ideas what could be going wrong?
>
> Thanks,
> Sharon
>
> On Feb 5, 7:39 pm, cricket <[email protected]> wrote:
>
> > On Sat, Feb 5, 2011 at 11:42 AM, WhyNotSmile <[email protected]> 
> > wrote:
> > > Thanks for your response OldWest.  I've just changed how this is done,
> > > but it's still not working.
>
> > > I would like the login page to appear like a regular page, so I want
> > > users to be able to enter '/pages/membership' and be taken to the
> > > page, which looks like all the others.
>
> > > I've routed it like this:
>
> > > (in routes.php)
> > >  Router::connect('/pages/membership', array('controller' => 'users',
> > > 'action' => 'login'));
> > >  Router::connect('/pages/*', array('controller' => 'pages', 'action'
> > > => 'view'));
>
> > You're needlessly complicating things by having PagesController also
> > deal with logging in. There's no need to do this. Create an element
> > with your login form and have it point to UsersController::login as
> > normal. Include the element inside views/users/login.ctp and also
> > inside any other page or layout where you'd like people to be able to
> > log in from.

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