Skip to content

Commit

Permalink
MDL-20365 auth_db: post integration tweaks
Browse files Browse the repository at this point in the history
* Fixes SQL indentation.
* Amended the new auth_dbsaltedcrypt string.
  • Loading branch information
Sam Hemelryk committed Nov 24, 2014
1 parent 9e9af67 commit c7c397c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion auth/db/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ function user_login($username, $password) {

$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();
Expand Down
2 changes: 1 addition & 1 deletion auth/db/lang/en/auth_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
$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}';
Expand Down

0 comments on commit c7c397c

Please sign in to comment.