Completed
Pull Request — master (#24189)
by Christoph
17:07
created
lib/private/user/session.php 1 patch
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,6 +96,7 @@  discard block
 block discarded – undo
96 96
 	 * @param IUserManager $manager
97 97
 	 * @param ISession $session
98 98
 	 * @param IProvider[] $tokenProviders
99
+	 * @param OC\AppFramework\Utility\TimeFactory $tokenProvider
99 100
 	 */
100 101
 	public function __construct(IUserManager $manager, ISession $session, $tokenProvider, array $tokenProviders = []) {
101 102
 		$this->manager = $manager;
@@ -177,7 +178,7 @@  discard block
 block discarded – undo
177 178
 	/**
178 179
 	 * get the current active user
179 180
 	 *
180
-	 * @return IUser|null Current user, otherwise null
181
+	 * @return null|User Current user, otherwise null
181 182
 	 */
182 183
 	public function getUser() {
183 184
 		// FIXME: This is a quick'n dirty work-around for the incognito mode as
@@ -325,7 +326,7 @@  discard block
 block discarded – undo
325 326
 	 * Tries to login the user with HTTP Basic Authentication
326 327
 	 *
327 328
 	 * @param IRequest $request
328
-	 * @return boolean if the login was successful
329
+	 * @return boolean|null if the login was successful
329 330
 	 */
330 331
 	public function tryBasicAuthLogin(IRequest $request) {
331 332
 		// TODO: use $request->server instead of super globals
@@ -348,6 +349,9 @@  discard block
 block discarded – undo
348 349
 		return false;
349 350
 	}
350 351
 
352
+	/**
353
+	 * @param string $uid
354
+	 */
351 355
 	private function loginWithToken($uid) {
352 356
 		//$this->manager->emit('\OC\User', 'preTokenLogin', array($uid));
353 357
 		$user = $this->manager->get($uid);
@@ -368,7 +372,7 @@  discard block
 block discarded – undo
368 372
 	 * @param IRequest $request
369 373
 	 * @param string $uid user UID
370 374
 	 * @param string $password
371
-	 * @return boolean
375
+	 * @return boolean|null
372 376
 	 */
373 377
 	public function createSessionToken(IRequest $request, $uid, $password) {
374 378
 		if (is_null($this->manager->get($uid))) {
Please login to merge, or discard this patch.