@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | /** |
178 | 178 | * get the current active user |
179 | 179 | * |
180 | - * @return IUser|null Current user, otherwise null |
|
180 | + * @return null|User Current user, otherwise null |
|
181 | 181 | */ |
182 | 182 | public function getUser() { |
183 | 183 | // FIXME: This is a quick'n dirty work-around for the incognito mode as |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | |
322 | 322 | /** |
323 | 323 | * Tries to login the user with HTTP Basic Authentication |
324 | - * @return boolean if the login was successful |
|
324 | + * @return boolean|null if the login was successful |
|
325 | 325 | */ |
326 | 326 | public function tryBasicAuthLogin() { |
327 | 327 | if (!empty($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['PHP_AUTH_PW'])) { |
@@ -343,6 +343,9 @@ discard block |
||
343 | 343 | return false; |
344 | 344 | } |
345 | 345 | |
346 | + /** |
|
347 | + * @param string $uid |
|
348 | + */ |
|
346 | 349 | private function loginWithToken($uid) { |
347 | 350 | //$this->manager->emit('\OC\User', 'preTokenLogin', array($uid)); |
348 | 351 | $user = $this->manager->get($uid); |
@@ -363,7 +366,7 @@ discard block |
||
363 | 366 | * @param IRequest $request |
364 | 367 | * @param string $uid user UID |
365 | 368 | * @param string $password |
366 | - * @return boolean |
|
369 | + * @return boolean|null |
|
367 | 370 | */ |
368 | 371 | public function createSessionToken(IRequest $request, $uid, $password) { |
369 | 372 | if (is_null($this->manager->get($uid))) { |