Completed
Push — master ( a84fba...e8b4d4 )
by Thomas
11:12
created
apps/federation/lib/Controller/OCSAuthAPIController.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -164,6 +164,10 @@
 block discarded – undo
164 164
 			'data' => ['sharedSecret' => $sharedSecret]];
165 165
 	}
166 166
 
167
+	/**
168
+	 * @param string $url
169
+	 * @param string $token
170
+	 */
167 171
 	protected function isValidToken($url, $token) {
168 172
 		$storedToken = $this->dbHandler->getToken($url);
169 173
 		return hash_equals($storedToken, $token);
Please login to merge, or discard this patch.
lib/private/legacy/api.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 
332 332
 	/**
333 333
 	 * http basic auth
334
-	 * @return string|false (username, or false on failure)
334
+	 * @return string (username, or false on failure)
335 335
 	 */
336 336
 	private static function loginUser() {
337 337
 		if(self::$isLoggedIn === true) {
@@ -387,6 +387,7 @@  discard block
 block discarded – undo
387 387
 	 * respond to a call
388 388
 	 * @param OC_OCS_Result | \OC\OCS\Result $result
389 389
 	 * @param string $format the format xml|json
390
+	 * @param OC_OCS_Result $result
390 391
 	 */
391 392
 	public static function respond($result, $format='xml') {
392 393
 		$request = \OC::$server->getRequest();
Please login to merge, or discard this patch.