Thursday, September 29, 2011

Re: Project logic question about AUTH

Heohni,

I would say you turn Auth on at AppController level so it;s available
all the time, as you will want to know on every page request whether
the user is logged in or not. The most basic reason for this is to
only show 'login/register' links when logged out and 'logout/your
account' links when logged in.

Just make sure that for all controllers that do not require login you
set $this->Auth->allow(*) and you're good to go.

HTH, Paul

On Sep 28, 11:22 am, heohni <heidi.anselstet...@consultingteam.de>
wrote:
> Hi,
>
> I am working an a project where you can see products.
> Products can be saved in a kind of bookmark list.
> This bookmark list is either valid per session, or if the user wants,
> he can setup an account and save the bookmark list for longer time.
>
> I need the auth functions only on a certain point. When the User is on
> the bookmarks page and wants to create an account and wants to login
> into his account to check his bookmarks.
>
> What do I have to do that AUTH is only "listening" to the bookmarks
> page and not to all others controllers?
>
> I really need some starting help :-)
>
> Thanks!!

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: