This commit is contained in:
2023-12-02 14:45:55 +05:00
parent 98df909c2d
commit a57006caa3

View File

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