MDL-20210 dod not stop login process when can not connect to auth/db external database
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user