diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-29 08:38:33 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-29 20:28:45 +0200 |
commit | 52f2e7112ea985203eca16aa787bd75a7cf92194 (patch) | |
tree | 1d1f5070b050652940847c569b1d3968bdae082c /lib/user | |
parent | 76bc4753e9bd2698415b067108806d82ac56b663 (diff) | |
download | nextcloud-server-52f2e7112ea985203eca16aa787bd75a7cf92194.tar.gz nextcloud-server-52f2e7112ea985203eca16aa787bd75a7cf92194.zip |
Whitespace fixes in lib
Diffstat (limited to 'lib/user')
-rw-r--r-- | lib/user/database.php | 6 | ||||
-rw-r--r-- | lib/user/http.php | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/user/database.php b/lib/user/database.php index dc11614cc57..52f3b35fa5c 100644 --- a/lib/user/database.php +++ b/lib/user/database.php @@ -43,7 +43,7 @@ class OC_User_Database extends OC_User_Backend { * @var PasswordHash */ static private $hasher=null; - + private function getHasher(){ if(!self::$hasher){ //we don't want to use DES based crypt(), since it doesn't return a has with a recognisable prefix @@ -53,7 +53,7 @@ class OC_User_Database extends OC_User_Backend { return self::$hasher; } - + /** * @brief Create a new user * @param $uid The username of the user to create @@ -172,7 +172,7 @@ class OC_User_Database extends OC_User_Backend { public function userExists($uid){ $query = OC_DB::prepare( 'SELECT * FROM `*PREFIX*users` WHERE LOWER(`uid`) = LOWER(?)' ); $result = $query->execute( array( $uid )); - + return $result->numRows() > 0; } diff --git a/lib/user/http.php b/lib/user/http.php index 547c0201b69..5149678e4ed 100644 --- a/lib/user/http.php +++ b/lib/user/http.php @@ -41,9 +41,9 @@ class OC_User_HTTP extends OC_User_Backend { $url.='?'.$parts['query']; } return array($parts['user'],$url); - + } - + /** * check if an url is a valid login * @param string url @@ -52,7 +52,7 @@ class OC_User_HTTP extends OC_User_Backend { private function matchUrl($url){ return ! is_null(parse_url($url,PHP_URL_USER)); } - + /** * @brief Check if the password is correct * @param $uid The username @@ -67,7 +67,7 @@ class OC_User_HTTP extends OC_User_Backend { return false; } list($user,$url)=$this->parseUrl($uid); - + $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERPWD, $user.':'.$password); @@ -76,7 +76,7 @@ class OC_User_HTTP extends OC_User_Backend { curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); - + curl_close($ch); return $status==200; |