wip
This commit is contained in:
@@ -16,7 +16,7 @@ class PhoneCodeVerification implements ValidationRule
|
|||||||
public function validate(string $attribute, mixed $value, Closure $fail): void
|
public function validate(string $attribute, mixed $value, Closure $fail): void
|
||||||
{
|
{
|
||||||
$verification = Verification::where('username', auth()->user()->phone)
|
$verification = Verification::where('username', auth()->user()->phone)
|
||||||
->where('code', $request->verification_code)
|
->where('code', $value)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
if (! $verification) {
|
if (! $verification) {
|
||||||
|
|||||||
Reference in New Issue
Block a user