Indentation fix.
This commit is contained in:
16
user_sql.php
16
user_sql.php
@@ -268,10 +268,10 @@ class OC_USER_SQL extends \OC_User_Backend implements \OCP\IUserBackend, \OCP\Us
|
|||||||
if(!$salt)
|
if(!$salt)
|
||||||
return false;
|
return false;
|
||||||
$enc_password = sha1($salt['salt'].sha1($password));
|
$enc_password = sha1($salt['salt'].sha1($password));
|
||||||
}
|
}
|
||||||
elseif($this -> settings['set_crypt_type'] === 'sha1')
|
elseif($this -> settings['set_crypt_type'] === 'sha1')
|
||||||
{
|
{
|
||||||
$enc_password = sha1($password);
|
$enc_password = sha1($password);
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
$enc_password = $this -> pacrypt($password, $old_password);
|
$enc_password = $this -> pacrypt($password, $old_password);
|
||||||
@@ -325,10 +325,10 @@ class OC_USER_SQL extends \OC_User_Backend implements \OCP\IUserBackend, \OCP\Us
|
|||||||
if(!$salt)
|
if(!$salt)
|
||||||
return false;
|
return false;
|
||||||
$ret = sha1($salt['salt'].sha1($password)) === $db_pass;
|
$ret = sha1($salt['salt'].sha1($password)) === $db_pass;
|
||||||
}
|
}
|
||||||
elseif($this -> settings['set_crypt_type'] == 'sha1')
|
elseif($this -> settings['set_crypt_type'] == 'sha1')
|
||||||
{
|
{
|
||||||
$ret = sha1($password) === $db_pass;
|
$ret = sha1($password) === $db_pass;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
$ret = $this -> pacrypt($password, $db_pass) === $db_pass;
|
$ret = $this -> pacrypt($password, $db_pass) === $db_pass;
|
||||||
|
|||||||
Reference in New Issue
Block a user