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:07:02 +00:00
parent 34563b35e7
commit 03ea0b32cc

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_db');
debugging(get_string('auth_dbcantconnect','auth_db'));
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_db');
debugging(get_string('auth_dbcantconnect','auth_db'));
return false;
}