MDL-20365 auth_db: post integration tweaks

* Fixes SQL indentation.
* Amended the new auth_dbsaltedcrypt string.
This commit is contained in:
Sam Hemelryk
2014-11-25 09:05:24 +13:00
parent 9e9af6736a
commit c7c397ca39
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -105,7 +105,8 @@ class auth_plugin_db extends auth_plugin_base {
$authdb = $this->db_init();
$rs = $authdb->Execute("SELECT {$this->config->fieldpass} FROM {$this->config->table}
$rs = $authdb->Execute("SELECT {$this->config->fieldpass}
FROM {$this->config->table}
WHERE {$this->config->fielduser} = '".$this->ext_addslashes($extusername)."'");
if (!$rs) {
$authdb->Close();
+1 -1
View File
@@ -49,7 +49,7 @@ $string['auth_dbpasstype'] = '<p>Specify the format that the password field is u
$string['auth_dbpasstype_key'] = 'Password format';
$string['auth_dbreviveduser'] = 'Revived user {$a->name} id {$a->id}';
$string['auth_dbrevivedusererror'] = 'Error reviving user {$a}';
$string['auth_dbsaltedcrypt'] = 'Salted crypt()';
$string['auth_dbsaltedcrypt'] = 'Crypt one-way string hashing';
$string['auth_dbsetupsql'] = 'SQL setup command';
$string['auth_dbsetupsqlhelp'] = 'SQL command for special database setup, often used to setup communication encoding - example for MySQL and PostgreSQL: <em>SET NAMES \'utf8\'</em>';
$string['auth_dbsuspenduser'] = 'Suspended user {$a->name} id {$a->id}';