Explorar el Código

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

Yannick Warnier hace 17 años
padre
commit
a0130507e1
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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)