MDL-20210 dod not stop login process when can not connect to auth/db external database

This commit is contained in:
Petr Skoda
2010-10-22 09:11:55 +00:00
parent 6989ee3a2e
commit 9551b113bc
+2 -2
View File
@@ -61,7 +61,7 @@ class auth_plugin_db extends auth_plugin_base {
WHERE {$this->config->fielduser} = '".$this->ext_addslashes($extusername)."' ");
if (!$rs) {
$authdb->Close();
print_error('auth_dbcantconnect','auth');
debugging(get_string('auth_dbcantconnect','auth'));
return false;
}
@@ -94,7 +94,7 @@ class auth_plugin_db extends auth_plugin_base {
AND {$this->config->fieldpass} = '".$this->ext_addslashes($extpassword)."' ");
if (!$rs) {
$authdb->Close();
print_error('auth_dbcantconnect','auth');
debugging(get_string('auth_dbcantconnect','auth'));
return false;
}