Kohana3 - Auth Module deleting User while he is logged in bug
Posted
by ahmet2106
on Stack Overflow
See other posts from Stack Overflow
or by ahmet2106
Published on 2010-05-12T20:52:00Z
Indexed on
2010/05/12
20:54 UTC
Read the original article
Hit count: 293
Hello Stackoverflow Users,
Today I've tested the Kohana3, which has been changed a lot.
I'm working so much with the Auth Module, and need this in my new Project also.
Now I found a Bug, I think it is a bug, what can I do?
Problem:
After I'm deleting a user from the Database, who is at this Moment logged_in() in my Website, and he is refreshing the page, he will be logged_in() as the first user out of the PRAEFIX_users Table. Even if he is deleted. And 99% this is an Administrator.
My function which is checking and redirecting if he is not logged_in():
if(!Auth::instance()->logged_in())
{
$this->request->redirect( 'login' );
}
How can i change my Check Login so, that if he is deleted, he will be redirected to login (/login/) ?
Here the same Thread at Kohana Forums, but I hope and think, stackoverflow is a litte bit faster :)
© Stack Overflow or respective owner