Skip to content
Snippets Groups Projects
Commit 7cace34d authored by Andreas Gohr's avatar Andreas Gohr
Browse files

rebuild $INFO array directly after lockout

darcs-hash:20050930154739-7ad00-e5dea212a28508d24be6471fe5900c7edb1bbde9.gz
parent 5783998f
No related branches found
No related tags found
No related merge requests found
......@@ -207,6 +207,7 @@ function act_save($act){
*/
function act_auth($act){
global $ID;
global $INFO;
//already logged in?
if($_SERVER['REMOTE_USER'] && $act=='login')
......@@ -217,8 +218,13 @@ function act_auth($act){
$lockedby = checklock($ID); //page still locked?
if($lockedby == $_SERVER['REMOTE_USER'])
unlock($ID); //try to unlock
// do the logout stuff
auth_logoff();
// rebuild info array
$INFO = pageinfo();
return 'login';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment