diff options
Diffstat (limited to 'app/Http/Controllers/PublicKeyController.php')
-rw-r--r-- | app/Http/Controllers/PublicKeyController.php | 4 |
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 |