Skip to content

Commit

Permalink
Modified preventing login by barred IP with stolen credentials to for…
Browse files Browse the repository at this point in the history
…ced logout; enables reading of site, in case of valid reasons
  • Loading branch information
turnermm committed Dec 3, 2017
1 parent 345e848 commit de58301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function dw_start(&$event, $param)


if( empty($u) && empty($p) && empty($_REQUEST['http_credentials']) && !empty($USERINFO) && !$this->is_allowed($allowed, $ip)){
header("HTTP/1.0 403 Forbidden");
exit("<div style='text-align:center; padding-top:2em;'><h1>403: Login Required</h1></div>");
unset($USERINFO) ;
global $ACT; $ACT = 'logout';
}

if($test && isset($USERINFO) && in_array('admin', $USERINFO['grps'])) {
Expand Down

0 comments on commit de58301

Please sign in to comment.