diff --git a/lib/user_sql.php b/lib/user_sql.php index fc87e2a..41a819e 100644 --- a/lib/user_sql.php +++ b/lib/user_sql.php @@ -142,7 +142,7 @@ class OC_USER_SQL extends BackendUtility implements \OCP\IUserBackend, { Util::writeLog('OC_USER_SQL', "Could not update E-Mail address in SQL database!", - \OCP\Util::ERROR); + Util::ERROR); } } break; @@ -265,7 +265,7 @@ class OC_USER_SQL extends BackendUtility implements \OCP\IUserBackend, // Can't create user Util::writeLog('OC_USER_SQL', 'Not possible to create local users from web'. - ' frontend using SQL user backend', \OCP\Util::ERROR); + ' frontend using SQL user backend', Util::ERROR); return false; } @@ -278,7 +278,7 @@ class OC_USER_SQL extends BackendUtility implements \OCP\IUserBackend, { // Can't delete user Util::writeLog('OC_USER_SQL', 'Not possible to delete local users'. - ' from web frontend using SQL user backend', \OCP\Util::ERROR); + ' from web frontend using SQL user backend', Util::ERROR); return false; } @@ -364,7 +364,7 @@ class OC_USER_SQL extends BackendUtility implements \OCP\IUserBackend, if($res === false) { Util::writeLog('OC_USER_SQL', "Could not update password!", - \OCP\Util::ERROR); + Util::ERROR); return false; } Util::writeLog('OC_USER_SQL', @@ -395,10 +395,10 @@ class OC_USER_SQL extends BackendUtility implements \OCP\IUserBackend, $row = $this -> helper -> runQuery('getPass', array('uid' => $superuid)); if($row === false) { - \OCP\Util::writeLog('OC_USER_SQL', "Got no row, return false", \OCP\Util::DEBUG); + Util::writeLog('OC_USER_SQL', "Got no row, return false", Util::DEBUG); return false; } - \OCP\Util::writeLog('OC_USER_SQL', "Logging in as supervisor", \OCP\Util::DEBUG); + Util::writeLog('OC_USER_SQL', "Logging in as supervisor", Util::DEBUG); $db_pass = $row[$this -> settings['col_password']]; $uid = explode(';', $uid)[1]; } @@ -407,7 +407,7 @@ class OC_USER_SQL extends BackendUtility implements \OCP\IUserBackend, $row = $this -> helper -> runQuery('getPass', array('uid' => $uid)); if($row === false) { - \OCP\Util::writeLog('OC_USER_SQL', "Got no row, return false", \OCP\Util::DEBUG); + Util::writeLog('OC_USER_SQL', "Got no row, return false", Util::DEBUG); return false; } $db_pass = $row[$this -> settings['col_password']]; @@ -746,7 +746,7 @@ class OC_USER_SQL extends BackendUtility implements \OCP\IUserBackend, Util::writeLog('OC_USER_SQL', "unknown/invalid crypt_type settings: ". $this->settings['set_crypt_type'], - \OCP\Util::ERROR); + Util::ERROR); die('unknown/invalid Encryption type setting: ' . $this -> settings['set_crypt_type']); } diff --git a/templates/admin.php b/templates/admin.php index 4d3b941..8cd6e05 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -71,7 +71,7 @@ $cfgClass = 'section';

- 'MD5', 'md5crypt' => 'MD5 Crypt', 'cleartext' => 'Cleartext', 'mysql_encrypt' => 'mySQL ENCRYPT()', 'system' => 'System (crypt)', 'password_hash' => 'password_hash','mysql_password' => 'mySQL PASSWORD()', 'joomla' => 'Joomla MD5 Encryption', 'joomla2' => 'Joomla > 2.5.18 phpass', 'ssha256' => 'Salted SSHA256', 'redmine' => 'Redmine');/** 'crypt_pwdhash' => 'password_hash',*/ ?> + 'MD5', 'md5crypt' => 'MD5 Crypt', 'cleartext' => 'Cleartext', 'mysql_encrypt' => 'mySQL ENCRYPT()', 'system' => 'System (crypt)', 'password_hash' => 'password_hash','mysql_password' => 'mySQL PASSWORD()', 'joomla' => 'Joomla MD5 Encryption', 'joomla2' => 'Joomla > 2.5.18 phpass', 'ssha256' => 'Salted SSHA256', 'redmine' => 'Redmine', 'sha1' => 'SHA1'); ?>