@@ -150,7 +150,7 @@ |
||
| 150 | 150 | |
| 151 | 151 | /** |
| 152 | 152 | * @param \Sabre\DAV\Server $server |
| 153 | - * @param $realm |
|
| 153 | + * @param string $realm |
|
| 154 | 154 | * @return bool |
| 155 | 155 | */ |
| 156 | 156 | private function auth(\Sabre\DAV\Server $server, $realm) { |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | /** |
| 173 | 173 | * get the current active user |
| 174 | 174 | * |
| 175 | - * @return IUser|null Current user, otherwise null |
|
| 175 | + * @return null|User Current user, otherwise null |
|
| 176 | 176 | */ |
| 177 | 177 | public function getUser() { |
| 178 | 178 | // FIXME: This is a quick'n dirty work-around for the incognito mode as |
@@ -301,6 +301,10 @@ discard block |
||
| 301 | 301 | return true; |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | + /** |
|
| 305 | + * @param string $uid |
|
| 306 | + * @param string $password |
|
| 307 | + */ |
|
| 304 | 308 | public function createSessionToken($uid, $password) { |
| 305 | 309 | if (is_null($this->manager->get($uid))) { |
| 306 | 310 | // User does not exist |