google recaptcha test

This commit is contained in:
omair saleh
2022-08-16 16:21:47 +08:00
parent eefbcbd6f8
commit c061af1a9e
@@ -53,7 +53,9 @@ abstract class AbstractControllerLogic
public function execute(Request $request) : JsonResponse {
try {
if(Auth::user()->type === 3) UserRiskAnalysis::dispatch(Auth::user(), $request->header('captcha-token'));
if(Auth::user()){
if(Auth::user()->type === 3) UserRiskAnalysis::dispatch(Auth::user(), $request->header('captcha-token'));
}
DB::beginTransaction();