Re: othAuth: logging in as other user + warning when permissions not sufficient

2006-08-22 Thread CraZyLeGs

1) you need two hashkeys, by default in the version in the snippet it's
not possible to kill the old login and login with a different one, it
will say you're already logged in.

2) in the new version that's comming normally this week, you can
specify a no_access page where the user is redirected to when he's
logged in but don't have sufficient perms on an url.


--~--~-~--~~~---~--~~
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.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



othAuth: logging in as other user + warning when permissions not sufficient

2006-08-21 Thread [EMAIL PROTECTED]

Hey guys, i just installed othauth, injected the logic in
app_controller, created some users, groups, incremented $gid a bit and
set $strict_gid_check to false in the component configuration (yes i
know this is not a clean method, i will fix this later and pass the
right stuff to the login method)


but now i have 2 questions

1)i can login both as user A, or as user B, but when i'm logged in as A
i can't login as B without logging out first (and vice versa).  is this
a bug, or a feature? ;-) any way i can enable "upgrading" accounts
without making dirty hacks in oth's code?

2) say i'm not logged in and request to do a protected method, so i get
the login prompt, and enter the (valid) login information for a user
who's permission level is not sufficient for the action.  what happens
now is that i'm redirected back to the login page.  anyone knows a nice
method to return to the loginpage, but show also a message "permissions
not sufficient for this user" or something like that?


--~--~-~--~~~---~--~~
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.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---