Skip to content

Commit

Permalink
MDL-20210 dod not stop login process when can not connect to auth/db …
Browse files Browse the repository at this point in the history
…external database
  • Loading branch information
skodak committed Oct 22, 2010
1 parent 34563b3 commit 03ea0b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/db/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function user_login($username, $password) {
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;
}

Expand Down Expand Up @@ -94,7 +94,7 @@ function user_login($username, $password) {
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;
}

Expand Down

0 comments on commit 03ea0b3

Please sign in to comment.