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