Re: Auth in 1.2 - get current user?

2008-03-04 Thread Dardo Sordi Bogado
First read the manual (it does a good job explaining the concepts), then: http://lemoncake.wordpress.com/2007/07/19/using-authcomponent-and-acl-in-cakephp-12/ http://lemoncake.wordpress.com/2007/07/19/acl-with-groups/ It works wonderful. On Tue, Mar 4, 2008 at 1:36 PM, jelmer <[EMAIL PROTECTED]

Re: Auth in 1.2 - get current user?

2008-03-04 Thread jelmer
Interesting, I was about to post the same questions, can anyone help us out?? 3) ACL can be used to manage usergroups and actions and permissions related to that, once you've read the manual on ACL you'll get the idea. I think there are a few tutorials on combining the Auth component and ACL as w

Re: Auth in 1.2 - get current user?

2008-02-05 Thread [EMAIL PROTECTED]
I had some head-scratching at first but found that most of the things I wanted to change, and was struggling with, was already the default behavior. Redirection after session timeout (any redirection in fact) jumps back to the requested page after login (or to your specified loginRedirect if no

Re: Auth in 1.2 - get current user?

2008-02-05 Thread Tim W
Do you have sample vode for those Andy? I've also been banging my head against 1.2 Auth for about 3 days and i'm tempted to rip it out and write my own - which I expect to take about 2 hours. On Feb 5, 11:08 pm, AD7six <[EMAIL PROTECTED]> wrote: > > 2. When refresh a exprired auth page , it'll ju

Re: Auth in 1.2 - get current user?

2008-02-05 Thread AD7six
On Feb 5, 8:20 am, Guoguolong <[EMAIL PROTECTED]> wrote: > But I have tow new problems on Auth1.2 > 1. If I frequently reresh a page with auth, it'll jump to login page, > why? Because you will be sending a stale session id > 2. When refresh a exprired auth page , it'll jump to login page. But

Re: Auth in 1.2 - get current user?

2008-02-05 Thread Guoguolong
wrote: > Thanks Amit. I think i've cracked auth in 1.2 and the "remember me" > cookie issue. I'll go try and work out ACL now, if I can i'll put a > fully working sample project up somewhere. > > On Feb 5, 12:59 am, "Amit Badkas" <[EMAIL PROTECTED]&

Re: Auth in 1.2 - get current user?

2008-02-05 Thread Guoguolong
login? On 2月5日, 上午10时05分, Tim W <[EMAIL PROTECTED]> wrote: > Thanks Amit. I think i've cracked auth in 1.2 and the "remember me" > cookie issue. I'll go try and work out ACL now, if I can i'll put a > fully working sample project up somewhere. > > On Feb 5

Re: Auth in 1.2 - get current user?

2008-02-05 Thread Guoguolong
> Thanks Amit. I think i've cracked auth in 1.2 and the "remember me" > cookie issue. I'll go try and work out ACL now, if I can i'll put a > fully working sample project up somewhere. > > On Feb 5, 12:59 am, "Amit Badkas" <[EMAIL PROTECTED]&

Re: Auth in 1.2 - get current user?

2008-02-04 Thread Tim W
Thanks Amit. I think i've cracked auth in 1.2 and the "remember me" cookie issue. I'll go try and work out ACL now, if I can i'll put a fully working sample project up somewhere. On Feb 5, 12:59 am, "Amit Badkas" <[EMAIL PROTECTED]> wrote: > On

Re: Auth in 1.2 - get current user?

2008-02-04 Thread Amit Badkas
On Feb 4, 2008 5:13 PM, Tim W <[EMAIL PROTECTED]> wrote: > > Hi all, > > Thanks mostly to the tutorial linked below I have basic auth working > in my project. I can create a user in the database (that took a while > to figure out), have users view public content without logging in, and > make user

Auth in 1.2 - get current user?

2008-02-04 Thread Tim W
Hi all, Thanks mostly to the tutorial linked below I have basic auth working in my project. I can create a user in the database (that took a while to figure out), have users view public content without logging in, and make users log in before they go to a page that's for registered only. So far I

Re: Auth in 1.2

2008-01-20 Thread Ben Wilson
On Jan 20, 2008 11:43 AM, b logica <[EMAIL PROTECTED]> wrote: > > Change back to where you had a blank screen and look in the error log > for any FATAL errors. I think I found the problem. I created a site-wide menu element that is in the default. It calls the action below. Because the action is

Re: Auth in 1.2

2008-01-20 Thread b logica
Change back to where you had a blank screen and look in the error log for any FATAL errors. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups

Re: Auth in 1.2

2008-01-19 Thread Ben Wilson
On Jan 19, 2008 10:55 PM, Ben Wilson <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 5:05 PM, Baz <[EMAIL PROTECTED]> wrote: > > Yep, > > > > Took me a while too. lol > > Okay, I bit. I'm trying to get authentication/authorization going for > a site and am trying your tutorial. Although, I have a tab

Re: Auth in 1.2

2008-01-19 Thread Ben Wilson
On Jan 16, 2008 5:05 PM, Baz <[EMAIL PROTECTED]> wrote: > Yep, > > Took me a while too. lol Okay, I bit. I'm trying to get authentication/authorization going for a site and am trying your tutorial. Although, I have a table in place and need to make a few mods. However, with the original table and

Re: Auth in 1.2

2008-01-16 Thread Baz
Yep, Took me a while too. lol -- Kevin Lloyd 3HN Designs http://www.3HNDesigns.com/ (214) 473-4207 On Jan 16, 2008 11:20 AM, Braindead <[EMAIL PROTECTED]> wrote: > > On Jan 16, 5:51 am, Baz <[EMAIL PROTECTED]> wrote: > > Oooohh, that's something I forgot to put in my tutorial! > > > > The sessi

Re: Oth-Auth in 1.2 not passing data array?

2008-01-16 Thread Siebren Bakker
ok, I've finally figured out the issue. In the othAuth component, in the $allowedLoginChars array, if you try using a " ", or space as a character, it treats that as an empty string, and it breaks the entire component..sorry if I confused anyone. On Jan 16, 2008 3:18 PM, Siebren Bakker <[EMAIL

Oth-Auth in 1.2 not passing data array?

2008-01-16 Thread Siebren Bakker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been trying to get the OthAuth component to work with the 1.2 beta of cake released just after the new year. In my users_controller.php file, I have the following function: 24 function login() 25 { 26 $this->pageTitle = 'L

Re: Auth in 1.2

2008-01-16 Thread Braindead
On Jan 16, 5:51 am, Baz <[EMAIL PROTECTED]> wrote: > Oooohh, that's something I forgot to put in my tutorial! > > The session messages for Auth aren't written to Message.flash, it's to > Message.auth... > Baz, I was searching for the reason that no auth errors are displayed for a long time! Than

Re: Auth in 1.2

2008-01-15 Thread Baz
Oooohh, that's something I forgot to put in my tutorial! The session messages for Auth aren't written to Message.flash, it's to Message.auth... This is what you'd need in your Layout file: if ($session->check('Message.flash')): $session->flash(); endif;

Re: Auth in 1.2

2008-01-15 Thread martinp
Thanks all. I stripped it all away (as suggested) and started from scratch and got it working. The problem with error messages seemed to be twofold. Firstly that logoutRedirect was actually causing a redirection on login, overriding loginRedirect. Strange. Also, I was incorrectly using loginError

Re: Auth in 1.2

2008-01-15 Thread Baz
Hey martin: Auth took me months to get working, even with Chris' tutorials. Try this, this may help. It's basic, no ACL (just controller), and there's code to download. http://www.webdevelopment2.com/cakephp-auth-component-tutorial-2/ As Chris said, get it working, then make it better. -- Kevin

Re: Auth in 1.2

2008-01-15 Thread Chris Hartjes
On Jan 15, 2008 7:05 AM, martinp <[EMAIL PROTECTED]> wrote: > > I've tried commenting out my userScope variable and removing > if(isset($this->Auth)), but still no joy. As all I get is the login > page with no error messages perhaps it is your first suggestion of a > config setting? Martin, Like

Re: Auth in 1.2

2008-01-15 Thread martinp
s perhaps it is your first suggestion of a config setting? Thanks for your help. On Jan 15, 4:26 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Jan 14, 2008 9:18 PM, martinp <[EMAIL PROTECTED]> wrote: > > > > > Hello > > > I appreciate there's a

Re: Auth in 1.2

2008-01-14 Thread Chris Hartjes
On Jan 14, 2008 9:18 PM, martinp <[EMAIL PROTECTED]> wrote: > > Hello > > I appreciate there's a lot of discussion and a few tutorials on Auth > in 1.2, but for some reason I can't get it to work at all - even at a > basic level. I'm probably doing something

Auth in 1.2

2008-01-14 Thread martinp
Hello I appreciate there's a lot of discussion and a few tutorials on Auth in 1.2, but for some reason I can't get it to work at all - even at a basic level. I'm probably doing something noobtastically wrong, so I apologise in advance for my stupidity if so, but I wonder if someon

Re: Auth in 1.2 - I'm not getting it...

2007-08-22 Thread Chris Hartjes
On 8/22/07, Benjamin Wohlwend <[EMAIL PROTECTED]> wrote: > > So, how could I setup this scheme with Auth? Any ideas? > I suggest you start with these links: http://lemoncake.wordpress.com/2007/07/19/using-authcomponent-and-acl-in-cakephp-12/ http://www.littlehart.net/atthekeyboard/2007/07/28/two

Auth in 1.2 - I'm not getting it...

2007-08-22 Thread Benjamin Wohlwend
Hi, I'm in the conceptual phase of a new website, and I decided to use CakePHP 1.2 for it. I never used CakePHP before, but have some experience with web frameworks and PHP. To get into CakePHP I thought it would be best to start with user authentication and authorization. I read pretty much eve