added attempts to rate

master v2.0.0
A1Gard 3 weeks ago
parent 0f8b99cd3e
commit 11ea1cbf2f

@ -235,6 +235,7 @@ class ClientController extends Controller
{
if (isGuestMaxAttemptTry('search', 5, 1)) {
return abort(403);
}
@ -736,8 +737,19 @@ class ClientController extends Controller
'rateable_type' => ['required', 'string'],
]);
// return $request->all();
if (isGuestMaxAttemptTry('rate', 5, 10)) {
return [
'OK' => false,
'message' => __('You try attempts, Try it a few minutes'),
'error' => __('You try attempts, Try it a few minutes'),
];
}
guestLog('rate');
$changed = false;
foreach ($request->rate as $k => $rt) {

Loading…
Cancel
Save