mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-25 15:58:24 -04:00
Merge pull request #359 from knnniggett/eyezm
fix eyezm authentication issue
This commit is contained in:
commit
371c1bae3d
1 file changed
+5
-4
@@ -28,12 +28,13 @@ foreach ( getSkinIncludes( 'includes/functions.php' ) as $includeFile )
|
||||
require_once $includeFile;
|
||||
|
||||
if ( empty($view) )
|
||||
$view = 'console';
|
||||
$view = 'console';
|
||||
|
||||
if ( !isset($user) && ZM_OPT_USE_AUTH )
|
||||
if ( !isset($user) && ZM_OPT_USE_AUTH && ZM_AUTH_TYPE == "remote" && !empty( $_SERVER['REMOTE_USER']) )
|
||||
{
|
||||
echo "Invalid Login";
|
||||
exit;
|
||||
$view = "postlogin";
|
||||
$action = "login";
|
||||
$_REQUEST['username'] = $_SERVER['REMOTE_USER'];
|
||||
}
|
||||
/* Get version info from client */
|
||||
updateClientVer();
|
||||
|
||||
Reference in new issue
Block a user