Completed
Pull Request — master (#25172)
by Christoph
11:03
created
lib/private/User/Session.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 	 *
262 262
 	 * @param string $uid
263 263
 	 * @param string $password
264
-	 * @return boolean|null
264
+	 * @return boolean
265 265
 	 * @throws LoginException
266 266
 	 */
267 267
 	public function login($uid, $password) {
@@ -360,6 +360,9 @@  discard block
 block discarded – undo
360 360
 		return $this->config->getSystemValue('token_auth_enforced', false);
361 361
 	}
362 362
 
363
+	/**
364
+	 * @param string $username
365
+	 */
363 366
 	protected function isTwoFactorEnforced($username) {
364 367
 		Util::emitHook(
365 368
 			'\OCA\Files_Sharing\API\Server2Server',
@@ -431,6 +434,9 @@  discard block
 block discarded – undo
431 434
 		return false;
432 435
 	}
433 436
 
437
+	/**
438
+	 * @param string $token
439
+	 */
434 440
 	private function loginWithToken($token) {
435 441
 		try {
436 442
 			$dbToken = $this->tokenProvider->getToken($token);
Please login to merge, or discard this patch.