소스 검색

[svn r13118] Added clear error_logging in case an authentication file cannot be found

Yannick Warnier 17 년 전
부모
커밋
a0130507e1
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      main/inc/local.inc.php

+ 5 - 0
main/inc/local.inc.php

@@ -294,6 +294,7 @@ else
             else // no standard Dokeos login - try external authentification
             {
             	//huh... nothing to do... we shouldn't get here
+            	error_log('Dokeos Authentication file '. $extAuthSource[$uData['auth_source']]['login']. ' could not be found - this might prevent your system from doing the corresponding authentication process',0);
             }
             
     	    if(!empty($_SESSION['request_uri']))
@@ -337,6 +338,10 @@ else
                 	{
                     	include_once($thisAuthSource['newUser']);
                 	}
+                	else
+                	{
+		            	error_log('Dokeos Authentication file '. $thisAuthSource['newUser']. ' could not be found - this might prevent your system from using the authentication process in the user creation process',0);
+                	}
                 }
             } //end if is_array($extAuthSource)