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]
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
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
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
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
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]&
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
> 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]&
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
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
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
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
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
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
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
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
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
-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
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
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;
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
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
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
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
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
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
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
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
28 matches
Mail list logo