MDL-20365 auth_db: post integration tweaks
authorSam Hemelryk <sam@moodle.com>
Mon, 24 Nov 2014 20:05:20 +0000 (09:05 +1300)
committerSam Hemelryk <sam@moodle.com>
Mon, 24 Nov 2014 20:05:24 +0000 (09:05 +1300)
* Fixes SQL indentation.
* Amended the new auth_dbsaltedcrypt string.

auth/db/auth.php
auth/db/lang/en/auth_db.php

index 4885484..cef314d 100644 (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();
index fb2ce13..ac3e645 100644 (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}';