Merge pull request #20 from gpgmailencrypt/master
SHA1 encryption type reactivated
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ $cfgClass = 'section';
|
||||
<p><label for="col_displayname"><?php p($l -> t('Real Name Column')); ?></label><input type="text" id="col_displayname" name="col_displayname" value="<?php p($_['col_displayname']); ?>" /></p>
|
||||
|
||||
<p><label for="set_crypt_type"><?php p($l -> t('Encryption Type')); ?></label>
|
||||
<?php $crypt_types = array('md5' => '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',*/ ?>
|
||||
<?php $crypt_types = array('md5' => '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'); ?>
|
||||
<select id="set_crypt_type" name="set_crypt_type">
|
||||
<?php
|
||||
foreach ($crypt_types as $driver => $name):
|
||||
|
||||
Reference in New Issue
Block a user