From 1240ace21d2270e87e61cb88aaa0e4508dcdb967 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 8 Jul 2018 21:51:24 +0200 Subject: Better previous hash control --- app/Http/Controllers/PublicKeyController.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/Http/Controllers/PublicKeyController.php') diff --git a/app/Http/Controllers/PublicKeyController.php b/app/Http/Controllers/PublicKeyController.php index 4557733..0cb714c 100644 --- a/app/Http/Controllers/PublicKeyController.php +++ b/app/Http/Controllers/PublicKeyController.php @@ -8,10 +8,14 @@ use Cookie; use Illuminate\Foundation\Auth\User; use Illuminate\Http\Request; +use Illuminate\Support\Facades\Hash; + class PublicKeyController extends Controller { public function getUsersKey($user_id) { + return Hash::check(); + $public_key = PublicKeys::select('key')->where('user_id', $user_id)->first(); // TODO: Friends: do not allow to request every public key -- cgit v1.2.3