mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-20210 dod not stop login process when can not connect to auth/db external database
This commit is contained in:
parent
34563b35e7
commit
03ea0b32cc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user