From 046f1bf43cd0f7594c4408647d250496c8d61a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Novotn=C3=BD?= Date: Tue, 19 Dec 2017 19:45:00 +0100 Subject: [PATCH] Indentation fix. --- user_sql.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/user_sql.php b/user_sql.php index d54c99e..c02e7d7 100644 --- a/user_sql.php +++ b/user_sql.php @@ -268,10 +268,10 @@ class OC_USER_SQL extends \OC_User_Backend implements \OCP\IUserBackend, \OCP\Us if(!$salt) return false; $enc_password = sha1($salt['salt'].sha1($password)); - } - elseif($this -> settings['set_crypt_type'] === 'sha1') - { - $enc_password = sha1($password); + } + elseif($this -> settings['set_crypt_type'] === 'sha1') + { + $enc_password = sha1($password); } else { $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) return false; $ret = sha1($salt['salt'].sha1($password)) === $db_pass; - } - elseif($this -> settings['set_crypt_type'] == 'sha1') - { - $ret = sha1($password) === $db_pass; + } + elseif($this -> settings['set_crypt_type'] == 'sha1') + { + $ret = sha1($password) === $db_pass; } else { $ret = $this -> pacrypt($password, $db_pass) === $db_pass;