Browse Source

some bug fix

mahdi
mahdihty 4 years ago
parent
commit
54ec6479ac
  1. 4
      app/Http/Controllers/AuthController.php

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

Loading…
Cancel
Save