apps/files_sharing/lib/Controller/PublicPreviewController.php 1 location
|
@@ 67-74 (lines=8) @@
|
| 64 |
|
return $this->share->getPassword(); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
public function isValidToken(): bool { |
| 68 |
|
try { |
| 69 |
|
$this->share = $this->shareManager->getShareByToken($this->getToken()); |
| 70 |
|
return true; |
| 71 |
|
} catch (ShareNotFound $e) { |
| 72 |
|
return false; |
| 73 |
|
} |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
protected function isPasswordProtected(): bool { |
| 77 |
|
return $this->share->getPassword() !== null; |
apps/files_sharing/lib/Controller/ShareController.php 1 location
|
@@ 203-211 (lines=9) @@
|
| 200 |
|
return $this->share->getPassword(); |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
public function isValidToken(): bool { |
| 204 |
|
try { |
| 205 |
|
$this->share = $this->shareManager->getShareByToken($this->getToken()); |
| 206 |
|
} catch (ShareNotFound $e) { |
| 207 |
|
return false; |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
return true; |
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
protected function isPasswordProtected(): bool { |
| 214 |
|
return $this->share->getPassword() !== null; |