Link expiration frontend

This commit is contained in:
Peter Papp
2020-08-25 15:25:18 +02:00
parent 86813629ed
commit 6f300ba1d5
7 changed files with 138 additions and 3 deletions

View File

@@ -32,7 +32,8 @@ class FileSharingController extends Controller
public function index($token)
{
// Get shared token
$shared = get_shared($token);
$shared = Share::where(\DB::raw('BINARY `token`'), $token)
->first();
if (! $shared) {
return view("index");