The (not existing but still logged in) user should not have any access
at all!
I solved it by putting this into the AppController's beforeFilter:
if($checkuser = $this->Session->read('Auth.User.id'))
{
if( !$this->Auth->identify($checkuser) )
{
$this->Auth->logout
Hello,
Just specify it in your model.
class Example extends AppModel {
var $useTable = 'othername';
}
Regars,
Jeroen
On 16 okt, 17:48, MDB <[EMAIL PROTECTED]> wrote:
> Hello all, I have a cake application that I need to add an existing
> table to that doesn't follow the cake naming conventio
That's the whole problem: how to sign him out? Cake should check if
the user exists on each request. Otherwise this is a big security
hole!
On 16 okt, 18:33, [EMAIL PROTECTED] wrote:
> Well it could be a little hack. When you delete the user make sure
> that user is first sighed out or the inform
I found a small problem with the Auth component in my latest cake app:
-User is logged in
-I'm also logged in and I delete the other user
-The other (now non-existing) user is still logged in!
Why does Auth not check if a User also exists?! How to fix this?
--~--~-~--~~~--
Define your actions as private if you want to completely deny acces:
private function edit() {
.
}
On 15 okt, 18:41, gravyface <[EMAIL PROTECTED]> wrote:
> I need a simple way to deny access to one or more actions in a
> controller. I'm using Auth (no ACL), but on a certain date, I want to
Unless you are logged in :-)
On 15 okt, 20:05, gwoo <[EMAIL PROTECTED]> wrote:
> The Auth component denies all actions by default.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this grou