From a57006caa3fbf83d08860f85dd6d3d10731ee60e Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Sat, 2 Dec 2023 14:45:55 +0500 Subject: [PATCH] wip --- app/Rules/PhoneCodeVerification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Rules/PhoneCodeVerification.php b/app/Rules/PhoneCodeVerification.php index 05fd6b7..069ebb3 100644 --- a/app/Rules/PhoneCodeVerification.php +++ b/app/Rules/PhoneCodeVerification.php @@ -16,7 +16,7 @@ class PhoneCodeVerification implements ValidationRule public function validate(string $attribute, mixed $value, Closure $fail): void { $verification = Verification::where('username', auth()->user()->phone) - ->where('code', $request->verification_code) + ->where('code', $value) ->first(); if (! $verification) {