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) {