aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Http/Controllers/PublicKeyController.php
diff options
context:
space:
mode:
authorMarvin Borner2018-07-08 21:51:24 +0200
committerMarvin Borner2018-07-08 21:51:24 +0200
commit1240ace21d2270e87e61cb88aaa0e4508dcdb967 (patch)
tree371ae9b2b0d92fc25d19741507c5b332af0f39f4 /app/Http/Controllers/PublicKeyController.php
parent1c2e6127f480979186e62c2e6ecc2971bf3a4451 (diff)
Better previous hash control
Diffstat (limited to 'app/Http/Controllers/PublicKeyController.php')
-rw-r--r--app/Http/Controllers/PublicKeyController.php4
1 files changed, 4 insertions, 0 deletions
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