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'); }