Browse Source

prevent redirect loop if an account is manually removed while logged in

pull/1/head
Friendika 11 years ago
parent
commit
c2b4791af0
  1. 2
      include/auth.php

2
include/auth.php

@ -28,6 +28,8 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
);
if(! count($r)) {
unset($_SESSION['authenticated']);
unset($_SESSION['uid']);
goaway($a->get_baseurl());
}

Loading…
Cancel
Save