From 54ec6479acf5c2dab6883d92c42408e2f4849a55 Mon Sep 17 00:00:00 2001 From: mahdihty Date: Tue, 20 Apr 2021 13:49:56 +0430 Subject: [PATCH] some bug fix --- app/Http/Controllers/AuthController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index 44686c3..a9de273 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -330,9 +330,9 @@ class AuthController extends Controller * @param $signature * @return JsonResponse */ - public function linkVerification($email, $type, $signature) + public function linkVerification(Request $request) { - if (!Cache::has($email) || Cache::get($email)['type'] !== $type || Cache::get($email)['signature'] != $signature) + if (!Cache::has($request->email) || Cache::get($request->email)['type'] !== $request->type || Cache::get($request->email)['signature'] != $request->signature) { abort(403, 'Validation failed'); }